Toggle Group
A set of two-state buttons that can be toggled on or off.
Made by imskyleenInstallation
Usage
API Reference
ToggleGroup
Prop | Type | Default |
---|---|---|
variant? | "default" | "outline" | - |
size? | "default" | "sm" | "lg" | "icon" | - |
...props? | HTMLMotionProps<"button"> | - |
ToggleGroupItem
Prop | Type | Default |
---|---|---|
variant? | "default" | "outline" | - |
size? | "default" | "sm" | "lg" | "icon" | - |
...props? | HTMLMotionProps<"button"> | - |
The asChild
property is not supported in the ToggleGroupItem
component, as
it is used for animation.
Credits
- Radix UI Toggle Group
- Credit to shadcn/ui for style inspiration.