The Accordion component allows users to show and hide sections of related content on a page. It uses a composable API with separate components for root, item, trigger, and content.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/raystack/apsara/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Multiple items open
API reference
Accordion (Root)
The root container component for the accordion.Whether multiple items can be open at the same time.
The controlled value of the accordion. Use string for single mode, string array for multiple mode.
The default value when uncontrolled. Use string for single mode, string array for multiple mode.
Callback fired when the accordion value changes. Receives string for single mode, string array for multiple mode.
Additional CSS class for the accordion root.
Accordion.Item
An individual accordion item.A unique value for the item.
Additional CSS class for the accordion item.
Whether the accordion item is disabled.
Accordion.Trigger
The button that toggles the accordion item.Additional CSS class for the trigger.
The content of the trigger button.
Accordion.Content
The collapsible content area.Additional CSS class for the content wrapper.
The content to display when expanded.