The Accordion component provides an expandable/collapsible content container perfect for FAQs, detailed sections, or any content that should be hidden by default.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devscribe-team/webeditor/llms.txt
Use this file to discover all available pages before exploring further.
Node specification
The accordion is a block-level node that can contain other block content.The heading text displayed in the accordion header
Optional descriptive text shown below the title when expanded
Lucide icon name to display in the header (e.g., “FileText”, “Star”)
Whether to display the icon in the header
Whether the accordion should be expanded by default
Usage
Insert via command menu
Type/accordion in the editor and select the Accordion option from the command menu. The accordion will be inserted with a default title that you can edit.
Insert via input rule
Type<accordion followed by optional attributes:
Programmatic insertion
Use theinsertAccordion function to insert an accordion programmatically:
Attributes
The accordion node spec defines the following attributes:Editing
In edit mode, you can:- Edit title: Click the title text to open the title edit modal
- Edit description: Click the description text to open the description edit modal
- The accordion automatically manages open/close state via the chevron button
The accordion uses the
resolveIcon utility to dynamically load Lucide icons. Icon names should match Lucide’s PascalCase convention (e.g., “ChevronDown”, “FileText”).