What an Accordion opens: the padded body of its region. It must sit in an Accordion, and takes the side padding of its hasGutters.
<AccordionDetails>It leaves on Monday.</AccordionDetails>
Demos
For usage examples, visit the component demo page: Accordion
Import
import { AccordionDetails } from '@soroush.tech/design-system/Accordion'Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | What the accordion opens. |
className, data-testid | On the root. |
Customization
theme.components.AccordionDetails styles the root.
Source code
If this page does not answer your question, have a look at the implementation of the component for more detail.