ActionCardWithTitleSample
@Sampled
@Composable
fun ActionCardWithTitleSample() {
ActionCard(action = { Button(onClick = {}) { Text("Send") } }, title = { Text("Title") }) {
Text("This is an action card with a title")
}
}
@Sampled
@Composable
fun NonFocusableCardWithButtonGroupSample() {
Column(verticalArrangement = Arrangement.spacedBy(GlimmerTheme.componentSpacingValues.large)) {
Card(focusable = false) { Text("This is a non-focusable card with a button group") }
ButtonGroup(modifier = Modifier.fillMaxWidth()) {
Button(onClick = {}) { Text("Button 1") }
Button(onClick = {}) { Text("Button 2") }
Button(onClick = {}) { Text("Button 3") }
}
}
}
// -------------------------------------------------------------------------------------------------
// ActionCard samples
// -------------------------------------------------------------------------------------------------