Skip to main content

Accordion

Result
Loading...
Live Editor

With the AccordionHeaderContent component

Kyber provides an AccordionHeaderContent component to help you build an accordion with render props for each section of the header.

Result
Loading...
Live Editor

Using with collapsible Cards

The useAccordionButton can be used within a custom toggle to control the state of the Accordion. In this example the Card component is used to create a collapsible card.

Result
Loading...
Live Editor

Using ListGroup

It's possible to create a ListGroup styled Accordion by setting the as prop of Accordion.Item to ListGroup.Item. Use the ListGroup.Item.Template component inside the Accordion.Item to match the visual style of the ListGroup component.

Result
Loading...
Live Editor

Props

Accordion

AccordionHeaderContent

```