Composable Function

RemoteCard

Base level Wear Material 3 RemoteCard that offers a single slot to take any content.

RemoteCard

Source set: Android
@Composable
public fun RemoteCard(
    onClick: Action,
    modifier: RemoteModifier = RemoteModifier,
    enabled: RemoteBoolean = true.rb,
    shape: RemoteShape = RemoteCardDefaults.shape,
    colors: RemoteCardColors = RemoteCardDefaults.cardColors(),
    contentPadding: RemotePaddingValues = RemoteCardDefaults.ContentPadding,
    content: @Composable @RemoteComposable () -> Unit,
)

Base level Wear Material 3 RemoteCard that offers a single slot to take any content.

Is used as the container for more opinionated RemoteCard components that take specific content such as icons, images, titles, subtitles and labels.

Parameters

onClick Will be called when the user clicks the card
modifier Modifier to be applied to the card
enabled Controls the enabled state of the card. When false, this component will not respond to user input
shape Defines the card's shape.
colors RemoteCardColors that will be used to resolve the colors used for this card. See RemoteCardDefaults.cardColors.
contentPadding The spacing values to apply internally between the container and the content
content The main slot for a content of this card

RemoteCard

Source set: Android
@Composable
public fun RemoteCard(
    onClick: Action,
    containerPainter: RemotePainter,
    modifier: RemoteModifier = RemoteModifier,
    enabled: RemoteBoolean = true.rb,
    shape: RemoteShape = RemoteCardDefaults.shape,
    colors: RemoteCardColors = RemoteCardDefaults.cardWithContainerPainterColors(),
    contentPadding: RemotePaddingValues = RemoteCardDefaults.CardWithContainerPainterContentPadding,
    content: @Composable @RemoteComposable () -> Unit,
)

Wear Material 3 RemoteCard that offers a single slot to take any content, with a background image.

An Image background is a means to reinforce the meaning of information in a Card, e.g. to help to contextualize the information. Cards should have a content color that contrasts with the background image and scrim. This RemoteCard takes containerPainter for the container image background to be drawn (the RemoteCardColors containerColor property is ignored). It is recommended to use RemoteCardDefaults.containerPainter to create the painter so that a scrim is drawn on top of the container image, ensuring that any content above the background is legible.

Parameters

onClick Will be called when the user clicks the card
containerPainter The RemotePainter to use to draw the container image of the RemoteCard, such as returned by RemoteCardDefaults.containerPainter.
modifier Modifier to be applied to the card
enabled Controls the enabled state of the card. When false, this component will not respond to user input
shape Defines the card's shape.
colors RemoteCardColors that will be used to resolve the colors used for this card. See RemoteCardDefaults.cardWithContainerPainterColors.
contentPadding The spacing values to apply internally between the container and the content
content The main slot for a content of this card

Content updated: