Dropdown

React dropdown field with single and multiple selection, in-panel search, grouped options, and full field wiring. Built on cmdk for fast filtering in Arabic and English.

Dropdown is a select field composed from DropdownItem children. Add multiple for multi-select or searchable for an in-panel filter.

When to use

Use Dropdown when a select needs search, multiple values, or grouped options: choosing several services, filtering by many cities, or picking from a long reference list. Use Select for a plain single choice and Chip for a visible set of filters.

Provide emptyMessage so a search with no results still explains itself.

Examples

Single select

Searchable

Multi-select

Grouped options

Props

Props declared by Dropdown. Native attributes of the underlying element pass through.

<Dropdown>

PropTypeDefaultDescription
size"md" | "lg"
variant"default" | "filled-lighter" | "filled-darker"
openboolean
defaultOpenboolean
onOpenChange(open: boolean) => void
labelreact.ReactNodeVisible label above the trigger.
helperTextreact.ReactNodeHint shown below the trigger when there's no error.
errorMessagereact.ReactNodeMessage shown below the trigger when error is true.
errorbooleanMarks the field invalid - sets aria-invalid and the error border.
requiredbooleanAdds the required asterisk + aria-required.
disabledbooleanDisables the trigger entirely.
readOnlybooleanShows the value but blocks opening (SDGA Read-only).
placeholderreact.ReactNodePlaceholder shown when nothing is selected.
searchablebooleanRender the in-panel filter input (combobox behavior). Off by default - the plain SDGA dropdown. A hidden focusable input is kept either way for cmdk's keyboard model.
searchPlaceholderstringPlaceholder for the filter input when searchable.
emptyMessagereact.ReactNodeShown when a filter matches nothing.
getLabel(value: string) => ReactNodeOverride the trigger label resolver (e.g. async-loaded options).
idstring
classNamestring
aria-labelstring
aria-labelledbystring
childrenrequiredreact.ReactNode<DropdownItem> (+ optional DropdownGroup / DropdownSeparator).
multiplefalse
valuestring
defaultValuestring
onValueChange(value: string) => void

<DropdownItem>

PropTypeDefaultDescription
valuerequiredstringStable value for filtering + selection.
keywordsstring[]Extra search terms cmdk matches against the filter input.
disabledbooleanWhether this item is currently disabled.
onSelect(value: string) => voidFires alongside the root's onValueChange.
childrenReactNode
asChildboolean
forceMountbooleanWhether this item is forcibly rendered regardless of filtering.

<DropdownGroup>

PropTypeDefaultDescription
headingreact.ReactNodeOptional heading to render for this group.
childrenReactNode
asChildboolean
valuestringIf no heading is provided, you must provide a value that is unique for this group.
forceMountbooleanWhether this group is forcibly rendered regardless of filtering.

<DropdownSeparator>

PropTypeDefaultDescription
asChildboolean
alwaysRenderbooleanWhether this separator should always be rendered. Useful if you disable automatic filtering.

Accessibility

The trigger reports aria-haspopup, and the field label, helper text, and error use the same wiring as TextInput. Inside the panel, the search input and option list follow the combobox pattern from cmdk. Arrow keys move through options, Enter toggles the highlighted one, and Escape closes.

Selected values are announced, and in multiple mode each selection stays visible in the trigger.