components / menu

menu.

action dropdown: a trigger opening a list of items, each running its onSelect. optional selected markers (e.g. a sort menu). behavior split into a headless useMenu hook.

installation
bunx @justin06lee/chrome@latest add menu
props
nametypedefaultdescription
trigger *ReactNode-
items *MenuItem[]-{ label, onSelect, icon?, selected?, disabled? }[]
labelstring-heading above the items.
align'left' | 'right''left'