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/spark';
<Select.Root>
<Select.Trigger>
<Select.Value />
</Select.Trigger>
<Select.Popup>
<Select.List>
<Select.Item />
</Select.List>
</Select.Popup>
</Select.Root>Examples
Multiple selection
Grouping options
API reference
Trigger
| Name | Type | Description |
|---|---|---|
size | smmd | The size of the trigger. Use sm to make the trigger as tall as a Button, for example when a Select sits in a row with buttons. Default: md |
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