• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference
ResizableSelect
ResizableSelect
ResizableSelect

Segmented Control

Switch between a few related views.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14

Install

With Icons

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Outline Variant

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Sizes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

API Reference

PropTypeDefaultDescription
options?SegmentedControlOption[][]Array of option objects (optional)
value?string | string[]—Selected value(s) for controlled component (optional)
defaultValue?string | string[]—Initial value(s) for uncontrolled component (optional)
onChange?(value: string | string[]) => void—Callback when value changes (optional)
multiple?booleanfalseAllow multiple selection (optional)
variant?"default" | "outline" | "filled""default"Visual variant (optional)
size?"sm" | "md" | "lg""md"Size variant (optional)
disabled?booleanfalseDisable the control (optional)
className?string—Additional CSS classes (optional)

SegmentedControlOption interface:

  • value – string. Option value (required)
  • label – string. Option label (required)
  • icon? – ReactNode. Icon element (optional)
  • disabled? – boolean. Disable this option (optional)