Skip to content

Accordion

Shows a set of sections that expand and collapse.

accordion-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Composition

  • Accordion

    Owns the expanded state.

    • AccordionItemRepeats
      • AccordionTrigger
      • AccordionContent

Divided

Use variant="divided" inside a container that already has a surface.

accordion-billing-demo.tsx

Multiple open sections

Set allowsMultipleExpanded to keep more than one section open.

Refresh the homepage and pricing pages before the October launch.

Final layouts, icons, and the approved copy deck.

accordion-multiple-demo.tsx

Disabled section

accordion-disabled-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria DisclosureGroup (opens in a new tab).

Accordion

variant: "card" | "divided" = "card"
Shows sections as separate cards, or as rows with lines.

AccordionItem

title: string
Renders an AccordionTrigger with this text. The children go into an AccordionContent.