Search the design system

Components

Switch

Switches allow users to enable or disable a setting immediately.

switch

Usage

Switches allow the user to enable or disable an option. Typically the expectation is that enabling or disabling the switch will immediately change the associated setting.

For a list of options where only one may be enabled at one time, use a radio group. For form setting with multiple options and where a confirming action is expected, consider using checkboxes.

Label text

Provide a label text to clearly indicate what option the associated switch enables or disables. Avoid too long label texts, the content should not exceed one line. Use the description field if extra clarification is required.

Provide a clear concise label for each switch
Provide a clear concise label for each switch
Don’t be unclear or unnecessarily wordy or to describe what the setting means.
Don’t be unclear or unnecessarily wordy in describing what the setting means.

Formatting

Anatomy

The switch features a label, along with an optional description text.

Anatomy of a switch

A. Switch
B. Label
C. Description

Behavior

States

The switch can be either selected or unselected.

States of a switch

1. Selected
2. Unselected

Modify

Alignment

The switch can be aligned to the left or the right within a design, according to needs.

Alignments of a switch

Left- and right aligned switches.

Description field

If further explanation is required in order to communicate what the associated option means, further clarification can be added in the description text.

Description field of a switch

A switch with label and description text.

ComponentsSnackbar / Code
ComponentsSwitch / 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