RemoteCard

Functions summary

Unit
@RemoteComposable
@Composable
RemoteCard(
    onClick: Action,
    modifier: RemoteModifier,
    enabled: RemoteBoolean,
    shape: RemoteShape,
    colors: RemoteCardColors,
    contentPadding: RemotePaddingValues,
    content: @Composable @RemoteComposable () -> Unit
)

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

Functions

@RemoteComposable
@Composable
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
): 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.

import androidx.compose.remote.creation.compose.action.Action
import androidx.compose.remote.creation.compose.state.rs
import androidx.wear.compose.remote.material3.RemoteCard
import androidx.wear.compose.remote.material3.RemoteText

RemoteCard(onClick = Action.Empty) { RemoteText("This is a basic card".rs) }
Parameters
onClick: Action

Will be called when the user clicks the card

modifier: RemoteModifier = RemoteModifier

Modifier to be applied to the card

enabled: RemoteBoolean = true.rb

Controls the enabled state of the card. When false, this component will not respond to user input

shape: RemoteShape = RemoteCardDefaults.shape

Defines the card's shape.

colors: RemoteCardColors = RemoteCardDefaults.cardColors()

RemoteCardColors that will be used to resolve the colors used for this card. See RemoteCardDefaults.cardColors.

contentPadding: RemotePaddingValues = RemoteCardDefaults.ContentPadding

The spacing values to apply internally between the container and the content

content: @Composable @RemoteComposable () -> Unit

The main slot for a content of this card