Skip to content
nexubDesign System
v12.7.0

Components · Interactive

Segmented Control

StableAdded v0.0.1

Tab-style control for mutually exclusive selections.

import { SegmentedControl } from '@nexub/react';
View as Markdown

Playground

Props

size
TSX
<SegmentedControl.Root defaultValue="month">…</SegmentedControl.Root>

Examples

Default

Sizes

States

  • default
  • disabled
  • size="sm"
  • size="md"
  • size="lg"

Props

Props
PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Size of the segmented control.
valuestring—The controlled selected value.
defaultValuestring—The initial selected value when uncontrolled.