brijr/ui

Lab

Dropdown Menu

npx shadcn@latest add @brijr/dropdown-menu

Parts

Use Pin open in the header to hold the menus in Parts, Sides, Align and Long menu open, with the Share submenu.

icons · shortcuts · disabled · destructive
checkbox · radio · group labels
submenu

Sides

top
right
bottom
left

Align

side bottom, on a wide trigger. The default is start.

start
center
end

Long menu

Content caps at the available height and scrolls. The second case caps itself with max-h-64.

30 items
max-h-64

Content

one item
long labels
long labels · w-56
only checkboxes

Triggers

icon button
shortcut mod+j
disabled
focusableWhenDisabled
unstyled trigger