Module

useSelect

Methods

# inner useSelect(options, defaultSelectionIndexopt) → {SelectState}

Manages the state of the select value.

Parameters:
Name Type Attributes Default Description
options Array.<Option> | null
defaultSelectionIndex Number <optional>
0

View Source common/components/Select/hooks/useSelect.js, line 29

SelectState

Type Definitions

Object

# Option

Properties:
Name Type Description
label String
value String

View Source common/components/Select/hooks/useSelect.js, line 7

Object

# SelectState

Properties:
Name Type Description
selectedOption Option
setSelectedOption function

View Source common/components/Select/hooks/useSelect.js, line 13