A Wear Material3 RemoteCompactButton that offers two slots and a specific layout for an icon and label.
@Composable
@WearPreviewDevices
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
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) },
)
}