Segmented Control
pulld/segmented-controlUnverifiedComponent
Horizontal group of 2–4 mutually exclusive options rendered as one pill/track — a lighter switch than Tabs for toggling a view, time range, unit, sort order, or mode (e.g. List/Grid, Day/Week/Month, °C/°F, Light/Dark). Built as an accessible radiogroup: arrow keys (and Home/End) roving-focus and select, each segment is a role=radio with aria-checked, there's a focus-visible ring, per-segment disabling, and it works controlled or uncontrolled via a string value with onValueChange. Unlike Tabs it doesn't manage panels — it's only the selector — and unlike a Switch it supports more than two choic
Install it
npx shadcn@latest add https://raw.githubusercontent.com/yu-shell/pulld/main/segmented-control.jsonThis registry does not serve an item endpoint we could read, so we hold its metadata but not its source.
Files it writes
More from pulld
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Announcement Barannouncement-bar | pulld | Components | Unverified | 1 dep | |
| Autosize Textareaautosize-textarea | pulld | Components | Unverified | no deps | |
| Avatar Stackavatar-stack | pulld | Components | Unverified | no deps | |
| Bento Gridbento-grid | pulld | Components | Unverified | no deps | |
| Bulk Action Barbulk-action-bar | pulld | Components | Unverified | no deps | |
| Code Blockcode-block | pulld | Components | Unverified | no deps | |
| Command Palettecommand-palette | pulld | Components | Unverified | 1 dep | |
| Confirm Buttonconfirm-button | pulld | Components | Unverified | no deps |
