Browse components

Dropdown

Menu anchored to your own trigger snippet, with arrow-key focus and four placements.

molecules

Live example

Default usage you can copy and adapt.

Basic Dropdown

Simple dropdown with options

With Placeholder

Dropdown with custom placeholder

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
triggerSnippet<[DropdownTriggerProps]>Yes—The control that opens the menu. Spread the ARIA props it receives onto your button.
optionsArray<{ value, label, disabled? }>No[]Menu items, when not supplying children.
isOpenbooleanNofalseOpen state. Bindable.
menuRole'menu' | 'listbox'NomenuRole for the popup; listbox for Select-style pickers.
placement'bottom-start' | 'bottom-end' | 'top-start' | 'top-end'Nobottom-startWhere the popup sits relative to the trigger.
onOptionClick(value: string | number) => voidNo—Runs when an option is chosen.