Dropdown
Dropdown select with optional search, multi-select, and icon support. Auto-closes when clicking outside. Displays selected items as comma-separated text.Import
Props
Unique identifier required for click-outside detection
Placeholder text shown when nothing is selected
Array of selectable options
Selection mode:
single for one item, multiple for checkboxesCurrently selected options (controlled component)
Callback fired when selection changes
Callback fired when search input changes, enables search functionality
Position of dropdown menu relative to trigger
Custom styles for the container
Custom styles for the dropdown menu container
Custom styles for individual option items
OptionProps
Unique identifier for the option
Display text for the option
Optional icon displayed before title
Usage
Notes
- Automatically closes when clicking outside the dropdown
- Search functionality only enabled when
onSearchChangeis provided - In
multiplemode, shows checkboxes for each option - In
singlemode, shows checkmark for selected option - Selected items displayed as comma-separated list in trigger
- Max height of menu is 250px with scrolling
- Chevron icon indicates open/closed state