Extra
DropdownMenu
A FormaUI dropdown menu — a transient surface of choices anchored to a control, delegating to Material 3's DropdownMenu.
dev.formaui.components.menu
item with leading iconitem with trailing shortcut hintdisabled item
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
Live preview
Live preview — ~37 MB development build
Usage
var expanded by remember { mutableStateOf(false) }
Box {
FormaIconButton(onClick = { expanded = true }) { Text("⋮") }
FormaDropdownMenu(expanded = expanded, onDismissRequest = { expanded = false }) {
FormaDropdownMenuItem(text = "Share", onClick = { expanded = false })
FormaDropdownMenuItem(text = "Delete", onClick = { expanded = false })
}
}Accessibility
The menu renders in its own popup and routes an outside tap or the back gesture to onDismissRequest. FormaDropdownMenuItem's text is a real Text, so each item announces its own label; treat leadingIcon/trailingIcon as decorative (contentDescription = null) since they repeat it.