Select API
API documentation for Select component
SelectRoot#
Props#
Defines valid properties in Select component.
State#
Defines valid state in Select component.
Exposes#
Defines the methods and properties exposed by Select component.
Events#
SelectValueChangeEvent
Event fired when the select's value changes.
| name | type | description |
|---|---|---|
| value | unknown | The new value of the select. |
| option | unknown | The selected option. |
| originalEvent | SyntheticEvent | The original event that triggered the change. |
SelectFilterValueChangeEvent
Event fired when the select's filter value changes.
| name | type | description |
|---|---|---|
| query | string | The current filter query. |
| originalEvent | SyntheticEvent | The original event that triggered the change. |
SelectOpenChangeEvent
Event object for the onOpenChange callback.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Select component.
Types#
Instance
Instance of SelectRoot component.
| values |
|---|
| ComponentInstance<SelectRootProps, SelectRootState, SelectRootExposes> |
SelectTrigger#
Props#
Defines valid properties in SelectTrigger component.
Exposes#
Defines the methods and properties exposed by SelectTrigger component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectTrigger component.
| name | type | default | description |
|---|---|---|---|
| root | SelectTriggerPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectTrigger component.
| values |
|---|
| ComponentInstance<SelectTriggerProps, SelectTriggerState, SelectTriggerExposes> |
SelectIcon#
Props#
Defines valid properties in SelectIcon component.
Exposes#
Defines the methods and properties exposed by SelectIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectIcon component.
| name | type | default | description |
|---|---|---|---|
| root | SelectIconPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectIcon component.
| values |
|---|
| ComponentInstance<SelectIconProps, SelectIconState, SelectIconExposes> |
SelectPortal#
Props#
Defines valid properties in SelectPortal component.
Exposes#
Defines the methods and properties exposed by SelectPortal component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectPortal component.
| name | type | default | description |
|---|---|---|---|
| root | SelectPortalPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectPortal component.
| values |
|---|
| ComponentInstance<SelectPortalProps, SelectPortalState, SelectPortalExposes> |
SelectList#
Props#
Defines valid properties in SelectList component.
Exposes#
Defines the methods and properties exposed by SelectList component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectList component.
| name | type | default | description |
|---|---|---|---|
| root | SelectListPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectList component.
| values |
|---|
| ComponentInstance<SelectListProps, SelectListState, SelectListExposes> |
SelectOptions#
Props#
Defines valid properties in SelectOptions component.
Exposes#
Defines the methods and properties exposed by SelectOptions component.
| name | type | default | description |
|---|---|---|---|
| select | SelectRootInstance | null | The Select component instance. |
| listbox | ListboxRootInstance | null | The Listbox component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectOptions component.
| name | type | default | description |
|---|---|---|---|
| root | SelectOptionsPassThroughType<HTMLAttributes<HTMLUListElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectOptions component.
| values |
|---|
| ComponentInstance<SelectOptionsProps, SelectOptionsState, SelectOptionsExposes> |
SelectOption#
Props#
Defines valid properties in SelectOption component.
Exposes#
Defines the methods and properties exposed by SelectOption component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectOption component.
| name | type | default | description |
|---|---|---|---|
| root | SelectOptionPassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectOption component.
| values |
|---|
| ComponentInstance<SelectOptionProps, SelectOptionState, SelectOptionExposes> |
SelectClearIcon#
Props#
Defines valid properties in SelectClearIcon component.
Exposes#
Defines the methods and properties exposed by SelectClearIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectClearIcon component.
| name | type | default | description |
|---|---|---|---|
| root | SelectClearIconPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectClearIcon component.
| values |
|---|
| ComponentInstance<SelectClearIconProps, SelectClearIconState, SelectClearIconExposes> |
SelectSelection#
Props#
Defines valid properties in SelectSelection component.
Exposes#
Defines the methods and properties exposed by SelectSelection component.
| name | type | default | description |
|---|---|---|---|
| select | SelectRootInstance | null | The Select component instance. |
| listbox | ListboxRootInstance | null | The Listbox component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectSelection component.
| name | type | default | description |
|---|---|---|---|
| root | SelectSelectionPassThroughType<HTMLAttributes<HTMLElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectSelection component.
| values |
|---|
| ComponentInstance<SelectSelectionProps, SelectSelectionState, SelectSelectionExposes> |
SelectFilter#
Props#
Defines valid properties in SelectFilter component.
Exposes#
Defines the methods and properties exposed by SelectFilter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectFilter component.
Types#
Instance
Instance of SelectFilter component.
| values |
|---|
| ComponentInstance<SelectFilterProps, SelectFilterState, SelectFilterExposes> |
SelectHeader#
Props#
Defines valid properties in SelectHeader component.
Exposes#
Defines the methods and properties exposed by SelectHeader component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectHeader component.
| name | type | default | description |
|---|---|---|---|
| root | SelectHeaderPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectHeader component.
| values |
|---|
| ComponentInstance<SelectHeaderProps, SelectHeaderState, SelectHeaderExposes> |
SelectFooter#
Props#
Defines valid properties in SelectFooter component.
Exposes#
Defines the methods and properties exposed by SelectFooter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectFooter component.
| name | type | default | description |
|---|---|---|---|
| root | SelectFooterPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectFooter component.
| values |
|---|
| ComponentInstance<SelectFooterProps, SelectFooterState, SelectFooterExposes> |
SelectEmpty#
Props#
Defines valid properties in SelectEmpty component.
Exposes#
Defines the methods and properties exposed by SelectEmpty component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of SelectEmpty component.
| name | type | default | description |
|---|---|---|---|
| root | SelectEmptyPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of SelectEmpty component.
| values |
|---|
| ComponentInstance<SelectEmptyProps, SelectEmptyState, SelectEmptyExposes> |
useSelect#
Props#
Props for the useSelect hook.
State#
Defines valid state in useSelect.
Exposes#
Defines the methods and properties exposed by useSelect.
Events#
useSelectValueChangeEvent
Event fired when the select's value changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| value | unknown | The selected value. |
| option | unknown | The selected option object. |
useSelectOpenChangeEvent
Event object for the onOpenChange callback.
useSelectFilterValueChangeEvent
Event fired when the select's filter value changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| query | string | The current filter query. |
Types#
Instance
Instance of useSelect headless.
| values |
|---|
| HeadlessInstance<useSelectProps, useSelectState, useSelectExposes> |