Homecomponentsstructural
Accordion
A container that allows collapsing and expanding specific sections.
Multiple Expandable Items
Set type property to multiple to open multiple items at a time.
Open By Default
Use expanded property to show an item by default.
- Online
- At customer's location
- At professional's location
For multiple items, use expanded property to show an array of items by default.
- Morning
- Afternoon
- Evening
- Male
- Female
API
Accordion
type
Required
multiple
single
children
Required
ReactNode
expanded
string | string[]
data
DataAttributeMap
AccordionItem
id
Required
string
title
Required
string
children
Required
ReactNode
as
ElementType<any>