---
title: Toggle Group
description: Provides a shared state to a series of toggle buttons.
author:
name: imskyleen
url: https://github.com/imskyleen
---
## Installation
## Usage
```tsx
A
B
C
```
## Props
### Animate UI Props
#### ToggleGroup
#### ToggleGroupItem
',
required: false,
},
spanProps: {
description: 'The props of the toggle group item span',
type: 'React.HTMLAttributes',
required: false,
},
variant: {
description: 'The variant of the toggle group item',
type: 'default' | 'outline',
required: false,
default: 'default',
},
size: {
description: 'The size of the toggle group item',
type: 'default' | 'sm' | 'lg',
required: false,
default: 'default',
},
}}
/>
## Credits
- We use [Base UI](https://base-ui.com/react/components/accordion) for the accordion component.
- We take our inspiration from [Shadcn UI](https://ui.shadcn.com/docs/components/accordion) for the accordion style.