Beta

Toggle Group

A set of two-state buttons that can be toggled on or off.

Installation

Examples

Multiple

Props

Animate UI props

ToggleGroup

PropTypeDefault
type
0
-
transition?
Transition
{ type: 'spring', bounce: 0, stiffness: 200, damping: 25 }
activeClassName?
string
-
variant?
0
default
size?
0
default

ToggleGroupItem

PropTypeDefault
children
React.ReactNode
-
buttonProps?
HTMLMotionProps<"button">
-
spanProps?
React.HTMLAttributes<HTMLSpanElement>
-
variant?
0
default
size?
0
default

Credits

  • We use Radix UI for the toggle group component.
  • We take our inspiration from Shadcn UI for the toggle group style.

On this page