A versatile Accordion component, managing state, context, and styling.
Item 1
This is the content of Item 1.
Item 2
This is the content of Item 2.
Item 3
This is the content of Item 3.
Anatomy
<Accordion.Root>
<Accordion.Item>
<Accordion.Header />
<Accordion.Content />
</Accordion.Item>
</Accordion.Root>Examples
Variants
Accordion components come with three built in variants, solid, outlined, and muted.
Item 1
This is the content of Item 1.
Item 2
This is the content of Item 2.
Item 3
This is the content of Item 3.
Item 1
This is the content of Item 1.
Item 2
This is the content of Item 2.
Item 3
This is the content of Item 3.
Item 1
This is the content of Item 1.
Item 2
This is the content of Item 2.
Item 3
This is the content of Item 3.
Multiple Open
The multiple prop allows multiple accordion items to be expanded simultaneously.
Item 1
This is the content of Item 1.
Item 2
This is the content of Item 2.
Item 3
This is the content of Item 3.