Components
Button group
Joined button group for toolbars, split actions, and segmented controls.
Composition
Joined actions
- <ButtonGroup>
- <ButtonGroupText />
- primary action
- <Button />
- <ButtonGroupSeparator />
- secondary action
- <Button />
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/button-group.tsx.
Dependencies
Raw code
Primary installed source
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-button-group-* · 4 knobsHow the cascade resolves--cui-button-group-text-radius<length-percentage>var(--radius-control)--cui-button-group-text-background<color>var(--control-fill)--cui-button-group-text-foreground<color>var(--muted-foreground)--cui-button-group-separator-background<color>var(--border)