Extra
DropdownMenu
A FormaUI dropdown menu — a transient surface of choices anchored to a control, delegating to Material 3's DropdownMenu.
3 variantsThemed defaults
import dev.formaui.components.menu.FormaDropdownMenu
import dev.formaui.components.menu.FormaDropdownMenuItem
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
KOTLIN
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.