Components
Select
Selects let the user choose a single option from a fixed list. Use them when the available options are known in advance.
Stable
GitHubAnatomy
Anatomy
import {Select} from '@staffbase/design';
<Select.Root>
<Select.Trigger>
<Select.Value />
</Select.Trigger>
<Select.Popup>
<Select.List>
<Select.Item />
</Select.List>
</Select.Popup>
</Select.Root>When to use
When not to use
How to use
Structure
Social Hub
Choose the page this content belongs to.
Social Hub
Company News
People & Culture
Select a Space to continue.
Options
Placeholder & default value
Only Spaces you can publish to are listed.
Icons
Do
Social Hub
An icon that reinforces the type of content being selected.
Don't
Social Hub
A decorative icon that adds no meaning.
Do
English
A neutral language icon with the language name.
Don't
English
A country flag standing in for a language.
Layout & sizing
Behavior & states
Select a Space