Dropdown Menu

Displays a menu to the user — such as a set of actions or functions — triggered by a button.

Usage

Example

Non-navigational item

Use as: :div when the item hosts its own interactive element (e.g. a dialog or form trigger). This avoids nesting a <button>/<form> inside the item's <a> while keeping the menu-item styling, role and keyboard behavior.

Placement

If the DropdownMenu conflicts with edge, it will auto-adjust it's placement

Installation

Components

ComponentBuilt usingSource
DropdownMenuPhlex
DropdownMenuContentPhlex
DropdownMenuDocsPhlex
DropdownMenuItemPhlex
DropdownMenuLabelPhlex
DropdownMenuSeparatorPhlex
DropdownMenuTriggerPhlex
DropdownMenuControllerStimulus JS