Components
Searchable Single Select
Searchable single selects let the user filter a list of options by typing and pick one. Use them when the list is long enough to benefit from search.
Anatomy
Anatomy
import {SearchableSingleSelect} from '@staffbase/design';
<SearchableSingleSelect.Root>
<SearchableSingleSelect.Input />
<SearchableSingleSelect.Popup>
<SearchableSingleSelect.Empty />
<SearchableSingleSelect.List>
<SearchableSingleSelect.Item />
</SearchableSingleSelect.List>
</SearchableSingleSelect.Popup>
</SearchableSingleSelect.Root>; Anatomy


Properties
Searchable

Behaviour
Dropdown Height
- The dropdown in a Single Select can have a maximum height of 272px. If there are fewer dropdown items to reach the maximum height, the dropdown should hug the content.

Dropdown Width
- The dropdown in a Single Select can have a maximum width of 272px. Otherwise it should hug the content.
- Text should be truncated with an ellipsis when surpassing the maximum width.

Search Icon
- When a Single Select is searchable, the caret icon is replaced with a search icon when in the active/open state.

Field Truncation

Dropdown Truncation

Search Override
