Search
Search for a page

Dropdown Menu

A highly modular dropdown popover designed to arrange nested navigation hooks, shortcuts, and custom toggles under a beautiful glass backdrop.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/dropdown-menu.json

Basic Dropdown

A dropdown displaying user options and actions.

Toggles & Selection

Checkbox items and radio groups for configuring settings.

Sidebar toggle: Shown
Status Bar toggle: Hidden
Theme mode selection: dark

Best practices

The best practices when using dropdown menus.

  • Use separators to logically group related actions and reduce cognitive load.
  • Add keyboard shortcuts to standard menu items to assist power users.
  • Always display destructive actions, such as log out or delete, at the bottom of the list in red. Pair them with a confirmation logoDialog to prevent accidental data loss.
  • Limit sub-menu depth to a single level to prevent nested popovers from going out of screen bounds.

Components & Props

Dropdown sub-components and customization parameters.

Component / PropType / RoleDefaultDescription
DropdownMenu.RootToggle coordinator-Coordinates dialog modal visibility, focus, and open state.
DropdownMenu.TriggerTrigger element-Clickable button or anchor opening the dropdown content popover.
DropdownMenu.ContentPopover container-The floating glass container. Accepts alignment parameters like "center", "start", or "end".
DropdownMenu.ItemStandard item-Menu action option. Accepts "default" or "destructive" variant overrides.
liquidGlassbooleanfalseEnables physical liquid glass refraction distortion (Chromium only).
refractiveIndexnumber1.5Index of refraction (IOR) for the glass surface curvature. Range 1.0 (air) to 2.4.
bezelWidthnumber30Depth of the glass bezel refraction boundary zone (px).
displacementScalenumber30Strength of the physical refraction displacement offset.
surfaceProfile"circle" | "squircle" | "concave" | "lip""squircle"3D bezel outline profile contour style.
Previous Dialog
Give feedback
Next Glass View