Elements Button Group
Back to Elements

Button Group

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

ButtonGroup.Root

Grouped set of related buttons.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
orientation "horizontal" | "vertical" "horizontal"
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

ButtonGroup.Separator

Grouped set of related buttons.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
orientation string "vertical"
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

ButtonGroup.Text

Grouped set of related buttons.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
child Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.