dropdown menu
actions in a leaf list, with checks, choices and submenus. the list floats 6 px from its trigger and keeps a screened contact edge in light.
bunx --bun shadcn@latest add @mk/dropdown-menuexample
open the run menu. change notifications, move the run to another ship, or choose an action.
run or-412 is ready. orbit, notifications on.
run or-412 is ready. orbit, notifications on.
open
the parent list and its ship submenu, printed in place. the checked row and the chosen ship keep their own indicator columns.
draws where a floating layer meets the page, under its soft lift
variants
default actions, inset words and destructive actions share the same 36 px row, 44 px on a phone. destructive uses key ink and the trash glyph.
default
36 px action row
inset
room for an indicator
destructive
trash glyph, key ink
default
36 px action row
inset
room for an indicator
destructive
trash glyph, key ink
states
the trigger keeps its control ring outside. inside the list, focus stays inside the row and highlight uses the raised hover fill.
rest
outline trigger
hover
outline trigger
focus
outside control ring
pressed
outline trigger
disabled
disabled trigger
row, rest
flat popover fill
row, highlighted
raised hover fill
row, focus
inside control ring
row, disabled
disabled word ink
rest
outline trigger
hover
outline trigger
focus
outside control ring
pressed
outline trigger
disabled
disabled trigger
row, rest
flat popover fill
row, highlighted
raised hover fill
row, focus
inside control ring
row, disabled
disabled word ink