Skip to content
Hazine

Segmented controls

0 of 4 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 4

  • Segmented Control with Custom Value

    Mixes presets with free entry in one control: choosing Custom morphs that segment into a number field with a unit suffix and moves focus into it, and a typed value that equals a preset snaps back to that preset.

  • Icon and Label Segmented Control

    Each segment pairs icon and label, a container query hides the labels of unselected segments when space is tight while keeping their accessible names and adding tooltips, and the selected background slides between segments behind motion-safe.

  • Segmented Control that Collapses to Select

    Two renderings of one value chosen by measured container width, not viewport breakpoints, so it adapts inside sidebars and toolbars.

  • Two-line Segmented Control

    Taller segments with two text levels and an optional trailing tag; the caption is part of the accessible description, and segments stack vertically on narrow widths.