Select

A Select or ComboBox component is a UI element that allows users to choose one or more options from a dropdown list. It typically displays a default value or prompt, and when clicked, it expands to show a list of available choices. Users can either select an option from the list or, in the case of a ComboBox, input custom values. This component is ideal for conserving space in forms and making it easy for users to make selections quickly.
# Demo

Demo Coming Soon

Select examples will be available soon.

# Usage
# Attributes
NameTypeDefaultDetails
isMultibooleanfalseYou can pass isMulti option to switch between single / multi select.
labelstringOptionalLabel for the select field.
placeholderstringOptionalPlaceholder text for the select.
isLoadingbooleanfalseWhether the select is in loading state.
isCreatablebooleanfalseWhether new options can be created.
isClearablebooleanfalseWhether the selection can be cleared.
isSearchablebooleantrueWhether the select is searchable.
isDisabledbooleanfalseWhether the select is disabled.
classNamestring' 'You can customise by passing tailwind classes.
labelClassNamestring' 'You can customise by passing tailwind classes.
selectClassNamestring' 'You can customise by passing tailwind classes.
valueOptionType | OptionType[] | nullRequiredSelected value(s).
optionsOptionType[]RequiredArray of available options.
onCreateOption(inputValue: string) => voidOptionalCallback when new option is created.
onChange(value: OptionType | OptionType[] | null) => voidOptionalCallback when selection changes.
onChangeOptions(value: OptionType | OptionType[] | null) => voidOptionalAlternative change callback.
getOptionLabel(option: OptionType) => stringOptionalFunction to get option label.
getOptionValue(option: OptionType) => stringOptionalFunction to get option value.
inputIdstringOptionalID for the input element.
namestringOptionalName attribute for the select.
menuPortalTargetHTMLElementOptionalTarget element for menu portal.