Dropdown

Installation

Add the component with the CLI.

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

Install the dependencies, then copy the component source into your project.

npm install react-aria-components @heroicons/react cn 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
Design