- Accordion
- Alert Dialog
- Avatar
- Badge
- Banner
- BreadcrumbSOON
- Button
- Button Group
- Calendar
- Callout
- Card
- Checkbox
- CodeblockSOON
- Color Picker
- Container
- Control Group
- Dialog
- Dropdown
- File Uploader
- FlexBox
- FormSOON
- Grid View
- IconSOON
- ImageSOON
- Input
- Link
- List
- MenuSOON
- PaginationSOON
- Popover
- Progress
- Radio
- Section
- Select
- Separator
- Skeleton
- SliderSOON
- SpinnerSOON
- Switch
- Table
- Tabs
- Tag
- Textarea
- ToastSOON
- Tooltip
Accordion
Tidy up your content with our Accordion - a neat stack of titles ready to reveal their secrets on a single tapExample
API Reference
It builds on top of Radix-UI Accordion
Component Properties
Accordion
Acts as RadixUI's Accordion.Root. Most of the props available here can be used on the Accordion component
| Prop | Type | Default | Explanation |
|---|---|---|---|
variant | enum | stacked | The variant style of the accordion list. |
type | enum | single | Determines whether one or multiple items can be opened at the same time. |
collapsible | boolean | false | When type is "single", allows the user to close an open item by clicking it again. |
value | string | string[] | - | The controlled value(s) of the item(s) to expand. Use string for "single" type and string[] for "multiple" type. |
defaultValue | string | string[] | - | The default value(s) of the item(s) to expand when initially rendered. Use string for "single" type and string[] for "multiple" type. |
onValueChange | function | - | Event handler called when the expanded state of an item changes. |
disabled | boolean | false | When true, prevents the user from interacting with the accordion. |
dir | enum | ltr | The reading direction of the accordion when applicable. |
orientation | enum | vertical | The orientation of the accordion. |
Accordion.Item
A styled wrapper around RadixUI's Accordion.Item. Check here for the original props available
| Prop | Type | Default | Explanation |
|---|---|---|---|
value | string | - | A unique value for the item. |
disabled | boolean | false | When true, prevents the user from interacting with the item. |
Accordion.Header
A styled wrapper around RadixUI's Accordion.Header and Accordion.Trigger. Check here for the original props available
| Prop | Type | Default | Explanation |
|---|---|---|---|
children | React.ReactNode | - | The content of the accordion header trigger. |
Accordion.Content
A styled wrapper around RadixUI's Accordion.Content. Check here for the original props available
| Prop | Type | Default | Explanation |
|---|---|---|---|
children | React.ReactNode | - | The content of the accordion panel. |
forceMount | boolean | false | Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. |