Search the design system

Components

Select

Select allows for space efficient way for the user to make a selection from list of options.

select

Usage

Select is suitable for handling a longer list of options for the user to pick from. For shorter list of options, consider using a radio group. Only one option may be chosen by the user. Options are presented as text, with an optional icon. The expandable menu can be presented with the native option available to the users device, or as a custom menu, with icon support.

Native menu

Native menu

The select component utilizes the native menus of the user device, in the example an iOS menu.

Custom menu

Custom menu

As an alternative the select component can utilize a custom menu, with support for, among other features, leading icons.

Use the appropriate component for the task

Choose the appropriate tool for the interaction pattern.
Choose the appropriate tool for the interaction pattern.
Don’t use select when there are more appropriate components to accomplish the intended functionality.
Don’t use select when there are more appropriate components to accomplish the intended functionality. For example, if the available options are yes/no or on/off, a checkbox may be preferable.

Interaction states

Default

Default state

The default state, prior to user interaction.

Focus

Focus state

The select component is in focus.

Error

Error state

Validation has failed and an error message is displayed

Disabled

Disabled state

The Select component is not available for interaction. For accessibility considerations, avoid using the disabled state in your designs if possible.

List options in a natural order

Make sure your list is ordered in a predictable fashion to allow the user to easily find the desired option.

Order your list of options in natural manner.
Order your list of options in natural manner.
Don’t order your list in a manner that unpredictable or confusing.
Don’t order your list in a manner that unpredictable or confusing, such as ordering a a list of the months of the year alphabetically.

Formatting

Anatomy

Anatomy of the Select component

A. Label text
B. Placeholder / selection
C. Help text
D. Error text
E. Leading icon
F. Dropdown indicator
G. Container

Label text

Describes the expected input, e.g. “Month” for a scenario where the user is asked to select a month of the year. Keep the label text short, clear and concise, and pursue to make it no longer than a few words.

Placeholder text

In case a first default option is not pre-selected, the placeholder text can be used to further guide the user.

Selection text

Displays the currently selected option.

Help text

The help text is an optional field can be used provide additional guidance or contextual information about the expected options. Consider using the help text when extra clarification is needed for the user to complete its task.

Error text

An error message can be displayed if the user has omitted making a required selection, or an invalid selection has been made.

Modify

Outline variant

The select component is available as an outline variant, where the background of the container is omitted. When using, be aware of accessibility considerations for the input and placeholder text against the underlying background.

Example of a solid Select and an outlined Select.

Input in solid and outline variants.

ComponentsRadio group / Code
ComponentsSelect / Code

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.3.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se