Toggle group

Core

A row of icon or text toggles, single or multiple: one pressed fill glides between options, or each fades in on its own and neighbours join, as in a formatting toolbar.

pnpm dlx shadcn@latest add https://wui.alann.works/r/toggle-group.json

API Reference

PropTypeDefault
type"single"—
valuestring | null—
defaultValuestring | null—
onValueChange(value: string) => void—
Categories
inputs
Dependencies
motion