PillButton

fun PillButtonContainerScope.PillButton(onClick: () -> Unit, modifier: Modifier = Modifier, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, icon: @Composable () -> Unit = {}, content: @Composable () -> Unit = {})

An elevated pill-shaped button that displays given content and (optionally) an icon.

Must be hosted within a PillButtonContainer composable.

PillButton(
onClick = { visible = false },
icon = {
Icon(
painter = Icons.ArrowUp,
contentDescription = null,
),
},
)