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 menuprops
| name | type | default | description |
|---|---|---|---|
| trigger * | ReactNode | - | |
| items * | MenuItem[] | - | { label, onSelect, icon?, selected?, disabled? }[] |
| label | string | - | heading above the items. |
| align | 'left' | 'right' | 'left' |