segmented-control Component

Segmented Control

A segmented control is used to switch between different views or filter content. It functions like a styled radio button group where only one option can be selected at a time.

Basic Segmented Control

Preview Code
Copy

Size Variants

Preview Code
Copy

Semantic Color Variants

Preview Code
Copy

Extended Color Palette

Preview Code
Copy

Segmented Control with Icons

Icons with Text

Preview Code
Copy

Icon Only

Preview Code
Copy

Layout Variations

Fluid Width

Preview Code
Copy

Vertical Orientation

Preview Code
Copy

Compact Style

Preview Code
Copy

Style Variations

Pills Style

Preview Code
Copy

Basic Style

Preview Code
Copy

Outline Style

Preview Code
Copy

States and Interactions

Disabled Segments

Preview Code
Copy

With Data Values

Preview Code
Copy

Selected: day

Loading State

Preview Code
Copy

Interactive Example

View Switcher

Preview Code
Copy

Chart View

Responsive Behavior

Responsive Segmented Control

Preview Code
Copy

This control stacks vertically on mobile screens (< 640px)