Form Elements

Selects allow the user to choose a single item from a list of options. These are mainly used in forms.

Anatomy

Select Main Element

Main element of the select component. This element is always visible.

Select Anatomy: Select Main Element

Select Menu

Dropdown option menu of the select. Visible only when the select is active.

Select Anatomy: Select Menu
  1. Label sets the label of the select.
  2. Field box is the interactive element of the select and contains the selected option.
  3. Field text sets the chosen option of the select.
  4. Icon enforces the meaning of the select action.
  5. Helper text gives extra information when needed, to enforce the required information for the field or to give context when an error happens.
  6. Menu item box is the interactive element of the select menu item and contains one option.
  7. Menu item label sets the label of the select option.
  8. Scroll bar allows the user to scroll through the available options when there are more than six listed items.

Usage

When to Use

Use selects when users can choose from a list of more than five options and only one option can be selected. These are mostly used in forms.

When Not to Use

Don’t use a select when the user needs to multi-select options or there are fewer than five options to select from. Use checkboxes (for multi-select) or radios (for single select) instead.

Variants

There is only one type of select, no variations. On the other hand, there are two of variants for the select menu.

Select Variants: Variant 1
Select Variants: Variant 2
Select Variants: Variant 3
Variation
Purpose
Icon/Scroll Bar
Sizes

Select

Use for single-select options when having more than five options to choose from.

With icon (caret-down for default state, caret-up for active state), no scroll bar

LG, MD

Statitc select menu

Use to display a list of six options maximum for the user to select from.

No icon, no scroll bar

LG, MD

Scroll select menu

Use to display a list of more than seven options for the user to select from. Scroll bar is visible.

No icon, with scroll bar

LG, MD

Active and Field Not Selected

When the user hasn’t selected the field, the component stays in its default state.

Select Variant: Active and field non selected

Active and Field Selected

When the user selects the field, a list of options drops down from it.

Select Variant: Active and field selected

Alignment and Hierarchy

The alignment of selects with their container or in relation to content at the same level of the page, should follow a left-justified pattern.


Selects are mostly used in forms, alongside other form elements, to ensure the proper hierarchy of available user actions. All the form elements should have the same size.

Select alignment and hierarchy
Select Do

Do place selects following the same placement behavior as the other form elements: each on a separate line, taking the whole form width, and keeping the same padding between them.

Select Don't

Don’t place selects on one side of the main CTA.

Sizing

Sizing affects text size, icon size, and internal padding. The default size is medium, and you can use props to make it larger.

Sizes for the select main element
Select's main element sizes
Sizes for the select dropdown menu
Select's dropdown menu sizes

Themes

Select field and dropdown menu on dark theme
Dark
Select field and dropdown menu on mid theme
Mid
Select field and dropdown menu on light theme
Light