Accordion Component

The Accordion component allows you to toggle the visibility of content sections. It is useful for FAQs, menus, and more.

Features

  • Expandable and collapsible sections.
  • Customizable animations.
  • Lightweight and reusable.
  • Supports multiple open items with the allowMultiple prop.
  • Three variants: default, outlined, and splitted.

Installation

Usage

Examples

Multi-step

Outlined

Splited

Props

PropertyTypeDefaultDescription
childrenReactNoderequiredThe content to be displayed inside the accordion.
allowMultiplebooleanfalseAllows multiple accordion items to be open at the same time.
classNamestringAdditional CSS classes for the accordion container.
variantAccordionVariantdefaultThe visual style of the accordion.