CardDefaults


public static class CardDefaults


Default values used for Card

Summary

Public fields

static @NonNull CardDefaults

Public methods

final @NonNull PaddingValues

Default content padding used for a Card

final @NonNull Shape

The default shape of Card, which determines its corner radius.

Public fields

INSTANCE

Added in 1.0.0-alpha01
public static @NonNull CardDefaults INSTANCE

Public methods

getContentPadding

Added in 1.0.0-alpha01
public final @NonNull PaddingValues getContentPadding()

Default content padding used for a Card

This affects the outermost content padding applied around header images and the content container. Note that there is additional padding applied around the content / text / icons inside a card, this only represents the outer padding for the entire content.

getShape

@Composable
public final @NonNull Shape getShape()

The default shape of Card, which determines its corner radius.