Dark Mode
Colors
Drag And Drop
Forms
{"@context":"https://schema.org","@graph":[{"@type":"TechArticle","headline":"Dropdown","description":"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.","url":"https://intentui.com/docs/components/collections/dropdown","author":{"@type":"Person","name":"Irsyad","url":"https://x.com/irsyad"},"publisher":{"@type":"Organization","name":"Intent UI","url":"https://intentui.com","logo":{"@type":"ImageObject","url":"https://intentui.com/icon.svg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://intentui.com/docs/components/collections/dropdown"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://intentui.com"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://intentui.com/docs"},{"@type":"ListItem","position":3,"name":"Components","item":"https://intentui.com/docs/components"},{"@type":"ListItem","position":4,"name":"Collections","item":"https://intentui.com/docs/components/collections"},{"@type":"ListItem","position":5,"name":"Dropdown","item":"https://intentui.com/docs/components/collections/dropdown"}]}]}
Dropdown
Installation
Install the component via the CLI in one command.
npm
pnpm
yarn
bun
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
pnpm
yarn
bun
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 | - |
