Segmented
Switch between related options.
Basic usage
basic.tsx
More examples
Fill container
Small size
advanced.tsx
Usage
The default width follows the content; block fills the container. options accepts strings or labeled options with icons. Control selection with value / onChange and switch options using arrow keys. Set name to include the value in native form submissions.
Types
Import these types for data, callbacks and refs.