Composable Function

RemoteCompactButton

A Wear Material3 RemoteCompactButton that offers two slots and a specific layout for an icon and label.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

RemoteCompactButtonSimpleSample

@Composable
fun RemoteCompactButtonSimpleSample(modifier: RemoteModifier = RemoteModifier) {
    val tapCount = rememberMutableRemoteInt(0)
    val countSuffix = " (".rs + tapCount.toRemoteString() + " taps)"
    RemoteCompactButton(
        ValueChange(tapCount, tapCount + 1),
        modifier = modifier,
        label = { RemoteText("Tap me!".rs + countSuffix) },
    )
}