Skip to Content
SmartUI

Segmented

Switch between two to four equal views or values. One is always selected.

Usage

import { Segmented } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Changing how the same data is viewed: Day, Week, Month.

When not to use

  • More than four options. Use Tabs or Select.

Props

PropTypeDefaultDescription
items{ key, label }[]required
labelstringrequired
value, defaultValue, onChangestring, string, (key) => void-
size'sm' | 'md''md'
fullWidthbooleanfalse

Accessibility

  • Announced as a single-choice group. Arrow keys move between segments.

On this page