Actions
Button Group
Joins buttons and fields into one control.
npx shadcn-svelte@latest add http://localhost:5173/r/button-group.json Outline
Bordered segments share one border; the inner corners flatten.
light
dark
Pressed
Segments can't shrink without opening gaps, so a pressed segment darkens and its label shrinks instead. The middle segment is pinned pressed.
light
dark
Filled with separators
Filled segments have no border, so a separator divides them.
light
dark
With fields and text
light
dark
Sizes, vertical and nested
light
dark