Forms
Segmented Control
Switches between a few views or modes, with a thumb that slides to the active segment.
Group: Forms. Exports: SegmentedControl. Halaska addition with no shadcn/ui equivalent.
Usage
import { SegmentedControl } from "./halaska-kit";
SegmentedControl props
optionsarray: The choices to offer.valueany: The controlled value.onChange(value) => void: Called with the new value.
Accessibility
- The wrapper has the radiogroup role, and each segment is a native button with the radio role and aria-checked.
- Tab reaches the active segment only. Arrow keys, Home and End move to another segment and select it.
- The group takes no label, so name it in nearby text.
Used in
canvas screen, Confidence states, Agent setup
Halaska UI · Components · Patterns · Screens · Install