Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsButtons & actions

Segmented Toggle

Bordered bar of joined segments with a selected fill that glides or cross-fades between them, built on Radix ToggleGroup and Motion.

Preview

Studio bookings · Priya’s wheel class

86

+12% vs last week

MTWTFSS
Align
View
Notify Ines and Malik by

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
type"single" | "multiple""single"One selected segment, or any number.
valuestring | string[]-Controlled value (string for single, array for multiple).
defaultValuestring | string[]-Initial value when uncontrolled.
onValueChange(value) => void-Called when the selection changes.
allowEmptybooleanfalseSingle mode: clicking the selected segment clears the selection.
variant"raised" | "key""raised"Raised pebble lifted out of the well, or the lit key as the selected fill.
indicator"slide" | "fade""slide"How the selected fill moves in single mode. Multiple mode always fades.
size"sm" | "md" | "lg""md"Segment height; icon-only segments stay square.
orientation"horizontal" | "vertical""horizontal"Layout direction and arrow-key axis.
dividersbooleantrueThin lines between unselected neighbours.
itemsSegmentedToggleOption[]-Segments as data: { value, label?, icon?, disabled?, aria-label? }. Ignored when children are given.
disabledbooleanfalseDisables every segment.
loopbooleantrueArrow-key focus wraps at the ends.
classNamestring-Merged on the root bar.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗