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
DropdownDescription
The DropdownDescription component renders secondary text for a dropdown item.
| Prop | Type | Default |
|---|---|---|
className | string | - |
DropdownItem
The DropdownItem component represents one dropdown option or action.
| Prop | Type | Default |
|---|---|---|
className | string | - |
intent | "danger" | "warning" | - |
DropdownKeyboard
The DropdownKeyboard component displays a keyboard shortcut in a dropdown item.
| Prop | Type | Default |
|---|---|---|
className | string | - |
DropdownLabel
The DropdownLabel component renders dropdown item label text.
| Prop | Type | Default |
|---|---|---|
className | string | - |
DropdownSection
The DropdownSection component groups related dropdown items.
| Prop | Type | Default |
|---|---|---|
className | string | - |
title | string | - |
DropdownSeparator
The DropdownSeparator component separates dropdown groups.
| Prop | Type | Default |
|---|---|---|
className | string | - |
Intent UI Design
Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.