Skip to main content

Select

The Select component allows for a single option to be selected from a dropdown list. The Select component can be searchable or non-searchable.

Uncontrolled

By default, Select is an uncontrolled component. The defaultSelectedKey prop can be used to set the initial selected key.

Result
Loading...
Live Editor

With sections

Result
Loading...
Live Editor

Searchable

The searchable prop allows the user to search for items in the list. If the value is not found in the list the input value will be cleared on field blur.

Result
Loading...
Live Editor

Controlled

Controlled components are useful when you need to respond to changes in the selected key. For example, if you need to update the selected key based on user input, you can use the onSelectionChange prop to update the selected key.

Result
Loading...
Live Editor

Analytics

The Select component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'Select',
actions: {
onSelectionChange: { type: 'SELECT_SELECTION_CHANGE', payload: 'Change' },
onChange: { type: 'SELECT_CHANGE', payload: 'Change' },
},
};

Props