Skip to content

Segmented control

A segmented control is a group of two or more segmented control buttons with related content. By applying it, we can immediately switch the view of the linked content.

Enabled state

Name Token Value
On-layer / Secondary --color-on-layer-secondary #505057
Layer / Level 2 --color-layer-level-2 #F3F3F5
Border / Primary --color-border-primary #00000033
Button / Invisible --color-button-invisible #FFFFFF00

Hover, active state

Name Token Value
On-layer / Primary --color-on-layer-primary #24242B
Layer / Level 2 --color-layer-level-2 #F3F3F5
Border / Primary --color-border-primary #00000033
Button / Invisible hover --color-button-invisible-hover #0000000D
Button / Invisible active --color-button-invisible-active #0000001A

isSelected state

Name Token Value
On-layer / Interactive --color-on-layer-interactive #003BEB
Layer / Level 1 --color-layer-level-1 #FFFFFF
Border / Primary --color-border-primary #00000033

States are visual representations used to communicate the status of a segmented control button as an interactive element.

Segmented control - States

  1. Enabled – The enabled state of a segmented control button is when the user’s cursor is not hovering over it, and the segmented control button isn’t disabled.

  2. Hover – When the user’s cursor is on the segmented control button, it is in a hover state, but has not been clicked yet.

  3. Active – Segmented control button is in a active state after it has been pressed.

  4. Focus – Segmented control button is in a focus state when it is targeted via keyboard navigation.

  5. isSelected – Segmented control button is in the selected state to indicate a completed action.

  6. Loading – When an action is running, segmented control button is in a loading state. All the segmented control button support this state, and the width does not need to be changed. The cursor will show as ‘in progress’ to indicate that the action is being completed.

  7. Disabled – Segmented control button is in a disabled state when its action is blocked by something that needs to be completed first, such as changing a field value or waiting for a system response. Its opacity is set to 50%. Add an explanatory tooltip to inform the user why the button is disabled. The cursor will show as ‘not-allowed’ to indicate that the action cannot be executed.

Segmented control text is written in sentence case. Only the first word of each segmented control button is capitalized unless it includes a proper name or a word we capitalize (see Terminology and vocabulary).

Font-size (px) Font-weight
Button label 13 Semi-Bold

Segment control is available in two sizes. The size should be chosen based on the space available. By default, Soul defines Medium.

Segmented control - Sizes

Segment control is available in two sizes in height: small (30 px) and medium (36 px). The width is flexible and can be adjusted based on content, layout, and design requirements.

Small

Medium