Apidog Markdown
  1. Components
Apidog Markdown
  • Welcome to Apidog 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
    • Step
    • Tab
    • Tip
    • Copy to Clipboard
    • Text Hover Tip
    • 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
title
string 
Title
required
Define the title of the collapsible block
description
string 
Default status
optional
Detailed information below the collapsible block title
defaultOpen
boolean 
Default status
optional
The collapsible block is open by default
Default:
true
icon
string 
Icon
optional
Define the icon. For methods, see icon
Previous
Hightlight
Next
AccordionGroup
Built with