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.
Stable
GitHubAnatomy
Anatomy
import {SearchableSingleSelect} from '@staffbase/design';
<SearchableSingleSelect.Root>
<SearchableSingleSelect.Input />
<SearchableSingleSelect.Popup>
<SearchableSingleSelect.Empty />
<SearchableSingleSelect.List>
<SearchableSingleSelect.Item />
</SearchableSingleSelect.List>
</SearchableSingleSelect.Popup>
</SearchableSingleSelect.Root>;When to use
When not to use
How to use
Structure
Leading icon
Do
A group icon that names the type of content being selected.
Don't
A decorative icon that says nothing about the options.
Placeholder
Options list
Pick one fruit or vegetable.
Selected value and search
Long labels truncate in the field and in the list.
Validation
Select an audience to continue.
Accessibility
Content and UX copy
Do
Short, Title Case option labels and a placeholder that shows an example.
Don't
Sentence-long, lowercase labels and a placeholder that repeats the label.