Select
A dropdown selector for choosing from a list of options.
When to Use
- For selecting one or more items from a predefined list
- When a dropdown is more appropriate than radio buttons
- For searchable or taggable selection
Import
Examples
Basic
Multiple Selection
Searchable
Disabled
API
SelectProps
options—{ value, label, disabled? }[]— Option listvalue—string | string[]— Selected value (controlled)defaultValue—string | string[]— Default valueonChange—(value, option) => void— Change handlermode—"multiple" | "tags"— Selection modeshowSearch—boolean— Enable search (default:false)filterOption—(input, option) => boolean— Custom search filterplaceholder—string— Placeholder textdisabled—boolean— Disable selectorallowClear—boolean— Show clear buttonsize—"small" | "middle" | "large"— Sizestatus—"error" | "warning"— Validation statusloading—boolean— Loading statemaxTagCount—number | "responsive"— Max tags to show in multiple mode