- Implementation
- SegmentedControl Props
- SegmentedControl.Segment Props
Common Examples
SegmentedControl components
The Anvil2 segmented control is made up of aSegmentedControl component and multiple child SegmentedControl.Segment components. Similar to a group of radio inputs, each SegmentedControl.Segment will need a unique value string that will be passed into the SegmentedControl’s onChange function when it is selected.Tooltip Example
TheSegmentedControl.Segment components can be wrapped in the Anvil2 Tooltip.Trigger component to display a tooltip on focus and hover. This is required for accessibility when only using an icon.