Apifox Markdown English
  1. Components
Apifox Markdown English
  • Welcome to Apifox Markdown
  • Basic Syntax and Features
    • Title and Text
    • Lists & Tables
    • Image
    • Video
    • Code
    • Icon
    • Tailwind CSS Supports
  • Components
    • Admonition
    • Hightlight
    • Accordion
    • AccordionGroup
    • Multiple Columns
    • Card
    • Card Group
    • Image Frame
    • Image Background
    • Step
    • Tab
    • Tip
    • Copy to Clipboard
    • Text Hover Tip
    • Container
    • Text Drawing - Mermaid
      • Graph
      • Sequence Diagram
      • Class Digram
      • State Diagram
      • Entity Relationship Diagram
      • Journey Map
      • Gantt Chart
      • Pie Chart
    • Formula
      • Inline Formula
      • Block-level Formula
  • Other Questions
    • Shortcuts
  1. Components

Accordion

Use the Accordion component to define a collapsible block for toggling content. It is open by default and hides the content when clicked again.

Example#

Collapsible Block
This is the content inside the collapsible block, click to toggle.
Code:
<Accordion title="Collapsible Block" >
This is the content inside the collapsible block, click to toggle.
</Accordion>
The content inside the collapsible block follows Markdown syntax.

Set Default Collapsed#

Default Collapsed Block
Code:
<Accordion title="Default Collapsed Block" defaultOpen={false}>
This is the content inside the collapsible block, default is closed.
</Accordion>

Add Icon#

Set Icon
Introduce an icon to the collapsible block.
Code:
<Accordion title="Add Icon" icon="material-two-tone-storefront">
Introduce an icon to the collapsible block.
</Accordion>

Parameter Description#

Accordion

Modified at 2024-05-29 05:59:16
Previous
Hightlight
Next
AccordionGroup
Built with