Name it with aria-label or a FieldLabel. Each SegmentedControlItem has a value.
period-control.tsx
SegmentedControl
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| full | boolean | false | ||||||||||||||||||||||||||||||||||||||||||
| orientation | "horizontal""vertical" | "horizontal" | ||||||||||||||||||||||||||||||||||||||||||
| rounded | "default""full" | "default" | ||||||||||||||||||||||||||||||||||||||||||
| size | "default""lg""sm""xs" | "default" | ||||||||||||||||||||||||||||||||||||||||||
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||
From Base UIRadioGroupBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | |||||||||||||||||||||||||||||||||||||||||
| read | boolean | false | Whether the user should be unable to select a different radio button in the group. | |||||||||||||||||||||||||||||||||||||||||
| required | boolean | false | Whether the user must choose a value before submitting a form. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||||||||||||||||||||||||||||||||||||
SegmentedControlItem
<span>| Prop | Type | Default | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||
From Base UIRadio.RootBase UI docs | |||||||||||||||||||||||||||||
| value | Value | — | The unique identifying value of the radio in a group. | ||||||||||||||||||||||||||
| disabled | boolean | — | Whether the component should ignore user interaction. | ||||||||||||||||||||||||||
| required | boolean | — | Whether the user must choose a value before submitting a form. | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. | ||||||||||||||||||||||||||
| Tab | Moves focus to the control. The control is one tab stop. |
|---|---|
| Arrow keys | Moves to the next or previous item and checks it. Right to left swaps them. |
| Space | Checks the focused item. |
- SelectPick one value, or several, from a list that opens under the field. The field has the look of Input, and the list works the same on every device.
- SwitchTurns a setting on or off at once, with no Save button. It comes in 3 sizes, with invalid, disabled, and read-only states.
- Tag GroupA row of tags that people can read, remove, pick as filters, or open as links. The arrow keys move from tag to tag.
- TabsPick Tabs to switch between views that each show their own panel in one shared place.
- Toggle GroupPick Toggle Group when people can turn on many options at once, or turn all of them off.
- Radio GroupPick Radio Group for a form choice from 2 to 5 options that each need a label or help text.











