Skip to main content

Accordion

Examples

Basic Accordion

View standalone
Elsevier is singularly focused on helping healthcare professionals improve clinical outcomes through evidence-based care.

Code
<Accordion>
<AccordionItem id="basic-accordion-1">
<AccordionTitle>
How many of Elsevier's journals offer a Gold Open Access option?
</AccordionTitle>
<AccordionContent>
Elsevier is singularly focused on helping healthcare professionals improve clinical outcomes through evidence-based care.
</AccordionContent>
</AccordionItem>
<AccordionItem
id="basic-accordion-2"
open
>
<AccordionTitle>
How many of Elsevier's journals offer a Gold Open Access option?
</AccordionTitle>
<AccordionContent>
Elsevier is singularly focused on helping healthcare professionals improve clinical outcomes through evidence-based care.
</AccordionContent>
</AccordionItem>
</Accordion>

Props

Accordion

className

string

AccordionItem

open

boolean

Default: false

id

string

AccordionContent

className

string

contentProps

ContentProps

as

ElementType<any>

AccordionTitle

className

string

isOpen

boolean

triggerProps

TriggerProps

as

ElementType<any>