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
GitHub

Anatomy

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

NameTypeDescription
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