Select

The Select component provides a reusable pattern for select in the interface.

Select

A single-select dropdown rendered at all three available sizes (sm, md, lg) with the label hidden.

Multiple Select

A multi-select dropdown rendered at all three sizes, with two items preselected and the field marked as required.

Placeholder in multi
Placeholder in multi
Placeholder in multi

Searchable Select

Both a searchable multi-select and a searchable single-select using a large option list; search is explicitly enabled via the search parameter.

Search for options

Select with Description

A select field with an additional description line rendered below the label to provide extra context or instructions.

Select the country where you currently reside.

Select with Helper Text

A select field with a small helper text rendered below the component using the helperText parameter.

Your selection will affect the language of all notifications.

Select with Error Message

A select field in an invalid state, showing how the errorMessage parameter attaches a validation message to the component.

Preselected Option

A single-select dropdown with one option preselected on load using the preselected parameter with a scalar key.

Required Select

A required single-select field that displays a required asterisk next to the label and removes the clear button.

Multiple Select with Max Selections

A multi-select dropdown limited to two simultaneous selections using the maxSelections parameter.

Select interests

Rounded Select

A select field styled with the c-select--rounded modifier class, producing a pill-shaped button appearance often used for filters.

API

Parameter Default Description
The placeholder of the dropdown
Supported if multiple select is enabled.
false The id attribute for the select component. Will be prefixed with "select_"
Additional description or instructions.
false If the element should be required
[] The options which can be selected. The key if the item will be used as value of the option and the value will be used as a label
false -
false Key of option to be preselected
false Sets the select box to a multiple select
false The name attribute for the select component
false Hides the label
Adds a helping text, below the element.
md The size of the select component (sm, md, lg)
false The maximum number of selections allowed. Will only be applied if "multiple" is true.
false Hides the placeholder but keeps the label
[] Ann array with attributes that will be set on the actual select element.
Enables a search input within the select dropdown.
Search... The placeholder text for the search input.
No results found The text to show when no results are found in the search.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--border-radius) range - Border Radius
var(--color--primary) color - Primary
var(--color--surface) color - Surface
var(--color--danger) color - Danger
var(--color--success) color - Success
var(--font-size-100) range - Base font size.
var(--font-size-90) range - One step below base in the type scale.
var(--font-size-80) range - Two steps below base in the type scale.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--color--surface-contrast-muted) color - Derived muted contrast for text and icons on surface backgrounds.
var(--color--danger-contrast) color - Danger Contrast