Dropdown
formsCustom dropdown select with trigger button, floating menu, keyboard navigation (Enter/Space/Escape/ArrowDown), outside-click close, selected item highlight, and placeholder support. Uses aria-haspopup and role=listbox.
Import
typescript
import { Dropdown } from "packages/ui/src";Props
DropdownProps
| Prop | Type | Required |
|---|---|---|
options | DropdownOption[] | Yes |
value | string | No |
onChange | (value: string) => void, placeholder?: string | No |
Examples
Dropdown
Custom dropdown select with keyboard navigation, outside-click close, and selected state styling.
Basic
Framework
Status
Pre-Selected
Selected: button