RemoteOutlinedCard

Functions summary

Unit
@RemoteComposable
@Composable
RemoteOutlinedCard(
    onClick: Action,
    modifier: RemoteModifier,
    enabled: RemoteBoolean,
    shape: RemoteShape,
    colors: RemoteCardColors,
    border: RemoteDp,
    borderColor: RemoteColor,
    contentPadding: RemotePaddingValues,
    content: @Composable @RemoteComposable () -> Unit
)

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

Functions

@RemoteComposable
@Composable
fun RemoteOutlinedCard(
    onClick: Action,
    modifier: RemoteModifier = RemoteModifier,
    enabled: RemoteBoolean = true.rb,
    shape: RemoteShape = RemoteCardDefaults.shape,
    colors: RemoteCardColors = RemoteCardDefaults.outlinedCardColors(),
    border: RemoteDp = RemoteCardDefaults.OutlinedBorderSize,
    borderColor: RemoteColor = RemoteCardDefaults.outlinedCardColors().contentColor,
    contentPadding: RemotePaddingValues = RemoteCardDefaults.ContentPadding,
    content: @Composable @RemoteComposable () -> Unit
): Unit

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

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

RemoteOutlinedCard(onClick = Action.Empty) { RemoteText("This is an outlined 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.outlinedCardColors()

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

border: RemoteDp = RemoteCardDefaults.OutlinedBorderSize

The border width for the card

borderColor: RemoteColor = RemoteCardDefaults.outlinedCardColors().contentColor

The color of the border

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