SegmentedControl
A compact single-value choice with native radio semantics and a shared inset surface.
Preview
Use SegmentedControl
SegmentedControl is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- Uses original RadioGroup behavior and native inputs.
- Arrow keys move focus and select; Home/End select endpoints, skipping disabled segments. Selecting the current value does not clear it.
- Native name/form/required, reset and controlled values are preserved. Use actual tabs for tab panels, ToggleGroup for optional pressed actions.
API reference
View TypeScript source