SegmentedControl uses native radio inputs with labels to provide an accessible, compact switch between options. It supports both text labels and icon options.
Basics
Pass an array of options with value and label properties. Use value and onChange for controlled usage, or omit them for uncontrolled behavior. The component manages its own state when uncontrolled.
Uncontrolled
When you omit value and onChange, SegmentedControl manages selection internally. Use onChange only when you need to react to changes.
Icons
For icon-only segments, set type="icon" and provide iconSize and options with label as an icon name. Use accessibilityLabel on each option for screen readers.
You can also set active to true to apply an active icon style.