Collections

Dropdown

A pop up menu that reveals a list of selectable options, commonly used for navigation, filters, or form inputs, with clear focus handling and keyboard support.

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/dropdown

Composed components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install react-aria-components @heroicons/react tailwind-merge tailwind-variants

Component API

The DropdownDescription component renders secondary text for a dropdown item.

PropTypeDefault
classNamestring-

The DropdownItem component represents one dropdown option or action.

PropTypeDefault
classNamestring-
intent"danger" | "warning"-

The DropdownKeyboard component displays a keyboard shortcut in a dropdown item.

PropTypeDefault
classNamestring-

The DropdownLabel component renders dropdown item label text.

PropTypeDefault
classNamestring-

The DropdownSection component groups related dropdown items.

PropTypeDefault
classNamestring-
titlestring-

The DropdownSeparator component separates dropdown groups.

PropTypeDefault
classNamestring-
Unlock the full power of
Intent UI Design

Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.

Learn more