Searchable Dropdown

A searchable dropdown component with support for groups, subgroups, and custom colors.

Preview

Installation

Usage

Examples

With Label

With Groups

With Subgroups

Keep Open On Select

API Reference

PropTypeDefaultDescription
valuestring-The selected value
onChange(value: string) => void-Callback when value changes
optionsstring[][]Simple list of options
groupsSearchableDropdownGroup[][]Grouped options with optional subgroups
placeholderstring'Select...'Placeholder text
labelstring-Optional label for the dropdown
optionColorsRecord<string, string>{}Custom colors for specific options
classNamestring-Additional CSS classes
keepOpenOnSelectbooleanfalseKeep dropdown open after selection

Types