Acronis UIKit
Components

Accordion

A vertical set of expandable disclosure sections.

Usage

import {
  Accordion,
  AccordionItem,
  AccordionTrigger,
  AccordionContent,
} from '@acronis-platform/ui-react';

Accordion is a vertical set of disclosure sections — each a header trigger over a height-animating panel — built on Base UI's Accordion. One section is open at a time by default; pass multiple to allow several. Each AccordionItem needs a value; control the open set with value / defaultValue.

Design-pending v1, ported from the legacy shadcn-uikit accordion.

Examples

<Accordion defaultValue={['plan']}>
  <AccordionItem value="plan">
    <AccordionTrigger>What is included?</AccordionTrigger>
    <AccordionContent>Backup, recovery, and anti-malware.</AccordionContent>
  </AccordionItem>
</Accordion>

Allow several sections open at once:

<Accordion multiple defaultValue={['plan', 'support']}>
  {/* … */}
</Accordion>

For a single optional section use Collapsible; for switching between views use Tabs.

API Reference

Accordion re-exports Base UI's Accordion.Root props — value / defaultValue (arrays of open item values) / multiple / disabled / onValueChange. AccordionItem (needs a value), AccordionTrigger, and AccordionContent accept their Base UI part props plus className.

Edit on GitHub

On this page