mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
3dc3852b7a
* Improve SEO descriptions across 47 pages Curated descriptions from two bot-generated PRs (#3908, #3949), selecting the best approach for each page: - Added missing title and description frontmatter to 10 API reference pages - Benefit-focused descriptions for integration pages (not implementation-heavy) - Accurate REST-aligned titles for API endpoints (Export, List, Trigger, etc.) - Expanded short descriptions to 50–160 character range throughout Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * copyedit * Update custom-domain.mdx * Fix analytics API page titles to match spec summaries "Export" was inaccurate — spec uses "Get" for both endpoints. Also updated descriptions to use "Retrieve" for consistency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
103 lines
2.8 KiB
Plaintext
103 lines
2.8 KiB
Plaintext
---
|
|
title: "Accordions"
|
|
description: "Use accordions to show and hide content sections, organize information, and enable progressive disclosure in your documentation."
|
|
keywords: ["accordions", "collapsible content", "expandable sections", "progressive disclosure"]
|
|
---
|
|
|
|
import IconsOptional from "/snippets/icons-optional.mdx";
|
|
|
|
Accordions allow users to expand and collapse content sections. Use accordions for progressive disclosure and to organize information.
|
|
|
|
## Single accordion
|
|
|
|
<Accordion title="I am an Accordion.">
|
|
You can put any content in here, including other components, like code:
|
|
```java HelloWorld.java
|
|
class HelloWorld {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello, World!");
|
|
}
|
|
}
|
|
```
|
|
</Accordion>
|
|
|
|
````mdx Accordion example
|
|
<Accordion title="I am an Accordion.">
|
|
You can put any content in here, including other components, like code:
|
|
|
|
```java HelloWorld.java
|
|
class HelloWorld {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello, World!");
|
|
}
|
|
}
|
|
```
|
|
</Accordion>
|
|
````
|
|
|
|
## Accordion groups
|
|
|
|
Group related accordions together using `<AccordionGroup>`. This creates a cohesive section of accordions that can be individually expanded or collapsed.
|
|
|
|
<AccordionGroup>
|
|
<Accordion title="Getting started">
|
|
You can put other components inside Accordions.
|
|
|
|
```java HelloWorld.java
|
|
class HelloWorld {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello, World!");
|
|
}
|
|
}
|
|
```
|
|
</Accordion>
|
|
|
|
<Accordion title="Advanced features" icon="bot">
|
|
Add icons to make accordions more visually distinct and scannable.
|
|
</Accordion>
|
|
|
|
<Accordion title="Troubleshooting">
|
|
Keep related content organized into groups.
|
|
</Accordion>
|
|
</AccordionGroup>
|
|
|
|
````mdx Accordion Group Example
|
|
<AccordionGroup>
|
|
<Accordion title="Getting started">
|
|
You can put other components inside Accordions.
|
|
|
|
```java HelloWorld.java
|
|
class HelloWorld {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello, World!");
|
|
}
|
|
}
|
|
```
|
|
</Accordion>
|
|
|
|
<Accordion title="Advanced features" icon="alien-8bit">
|
|
Add icons to make accordions more visually distinct and scannable.
|
|
</Accordion>
|
|
|
|
<Accordion title="Troubleshooting">
|
|
Keep related content organized into groups.
|
|
</Accordion>
|
|
</AccordionGroup>
|
|
````
|
|
|
|
## Properties
|
|
|
|
<ResponseField name="title" type="string" required>
|
|
Title in the Accordion preview.
|
|
</ResponseField>
|
|
|
|
<ResponseField name="description" type="string">
|
|
Detail below the title in the Accordion preview.
|
|
</ResponseField>
|
|
|
|
<ResponseField name="defaultOpen" type="boolean" default="false">
|
|
Whether the Accordion is open by default.
|
|
</ResponseField>
|
|
|
|
<IconsOptional />
|