SegmentedControl
Outside the canonOutside 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
#periodThe Overview's period: 7, 30 or 90 days, with the comparison line beside it. Click or use the arrow keys.
Medium
#md36px, for a form row where it sits beside 36px fields.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| options | { value, label }[] | — | |
| value | string | — | |
| onChange | (value) => void | — | |
| label | string | — | The group's accessible name, e.g. "Period" |
| size | sm | md | sm | 32px beside toolbar triggers, 36px in a form |