GitHub

Accordion

A collapsible for displaying content.

Installation

Usage

Examples

Single

By default, only one item can be open at a time. Use the collapsible prop to allow closing the open item.

Multiple

Use the multiple prop to allow multiple items to be open simultaneously.

Controlled

Use the value and onValueChange props to control the accordion state programmatically.

Open item: None

API Reference

Accordion

Root element of the accordion. Renders a div

AccordionItem

Container for a single accordion item. Renders a div

AccordionTrigger

Button that toggles the accordion item. Renders a button

AccordionContent

Container for the accordion item content. Renders a div


For a complete list of props, see the Ark UI documentation.