Skip to content
Design System
GitHub

Segmented control

v0.17.3

Switch between views of the same data. The selected segment is inverted.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

No role of its own: it is read as the text it contains.

    Keyboard

    KeysAction
    ←→Move to the previous or next segment
    EnterSpaceSelect the focused segment

    Colour contrast

    Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.