PillButtonContainer

fun PillButtonContainer(button: @Composable PillButtonContainerScope.() -> Unit, buttonVisible: Boolean, modifier: Modifier = Modifier, content: @Composable () -> Unit)

A host Composable for the PillButton Composable.

Draws a Box container for content. Such Box can be modified via modifier.

var visible by remember { mutableStateOf(true) }
PillButtonContainer(
button = {
PillButton(
onClick = { visible = false },
icon = {
Icon(
painter = Icons.ArrowUp,
contentDescription = null,
),
}
) {
Text("Text")
}
},
buttonVisible = visible,
) {
...
}