Android components Actions
StanceDropdownMenu
BetaA menu of actions with icons, groups, disabled and destructive items.
- PlatformAndroid, Jetpack Compose
- Builds on
DropdownMenu - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
var expanded by remember { mutableStateOf(false) }
Box {
StanceIconButton(StanceIcons.MoreVertical, contentDescription = "Template actions", onClick = { expanded = true })
StanceDropdownMenu(
expanded = expanded,
onDismissRequest = { expanded = false },
items = listOf(
StanceMenuItem("Duplicate", onClick = {}, icon = StanceIcons.Copy),
StanceMenuItem("Delete", onClick = {}, icon = StanceIcons.Trash, destructive = true, startsGroup = true),
),
)
}Accessibility
- Dismisses on back, outside taps and Escape.