Elements Toggle Group
Back to Elements

Toggle Group

0 components

UI elements you can copy into your project.

API reference

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

ToggleGroup.Root

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

ToggleGroup.Item

Grouped toggle buttons.

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