SegmentedControl

Outside the canon

Outside the canon vocabulary; added 2026-10-07 for the Invoicing Overview's period picker. One choice from a few, every option visible, the chosen segment navy (DESIGN.md: navy says "you have chosen this"). An outlined control: 1px stone-400, the buttons' and fields' line (2px until 2026-10-13, stone-300 until DES2-11 on 2026-10-23), with stone-200 dividers between segments, flat, 32px (sm) or 36px (md), ui-sm semibold labels. A radio group underneath: arrow keys move the choice, and only the chosen segment is in the tab order. In the app the segments may well be links (?period=30) that re-render the page, rather than client state.

App: Ui::SegmentedControlComponent (suggested; outside the canon vocabulary), arrow keys in a small Stimulus controller

Period picker

#period

The Overview's period: 7, 30 or 90 days, with the comparison line beside it. Click or use the arrow keys.

vs. the previous 30 days

Medium

#md

36px, for a form row where it sits beside 36px fields.

vs. the previous 30 days

Props

NameTypeDefaultNotes
options{ value, label }[]—
valuestring—
onChange(value) => void—
labelstring—The group's accessible name, e.g. "Period"
sizesm | mdsm32px beside toolbar triggers, 36px in a form