Dropdown

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 extends the React Aria Components <Text> component.

classNamestring

DropdownItem extends the React Aria Components <ListBoxItem> component.

classNamestring
intent"danger" | "warning"

DropdownKeyboard extends the Intent UI <Keyboard> component.

classNamestring

DropdownLabel extends the React Aria Components <Text> component.

classNamestring

DropdownSection extends the React Aria Components <ListBoxSection> component.

classNamestring
titlestring

DropdownSeparator extends the React Aria Components <Separator> component.

classNamestring