For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Slack communityLog inBook a demo
  • Getting Started
    • Overview
    • Quickstart
    • Customer Showcase
  • Writing Content
    • Markdown
      • Overview
      • Accordions
      • Accordion Groups
      • Aside
      • Button
      • Callouts
      • Cards
      • Card Groups
      • Code Blocks
      • Embed
      • Endpoint Request Snippet
      • Endpoint Response Snippet
      • Endpoint Schema Snippet
      • Frames
      • Icons
      • Parameter Fields
      • Steps
      • Tabs
      • Tooltips
    • Visual Editor
    • Reusable Markdown
    • Custom React Components
    • Changelog
LogoLogo
Slack communityLog inBook a demo
On this page
  • Enhanced Search Functionality
  • Usage Examples
Writing ContentComponents

Accordion Groups

Was this page helpful?
Previous

Aside

Next
Built with

Accordion Groups allow you to organize content into collapsible sections, making it easier for users to navigate through information. With recent updates, our Accordion component now supports improved search functionality using the browser’s built-in search feature.

Basic Usage

Accordion Groups can contain multiple Accordion items. Each item has a title and content that can be expanded or collapsed.

1<AccordionGroup>
2 <Accordion title="Section 1">
3 Content for section 1
4 </Accordion>
5 <Accordion title="Section 2">
6 Content for section 2
7 </Accordion>
8</AccordionGroup>
Searchable Content

The updated Accordion component now uses HTML5 <details> and <summary> elements, enabling browser search (Cmd+F / Ctrl+F) to find content within collapsed sections.

Accessibility

Our Accordion component is built with accessibility in mind, supporting keyboard navigation and screen readers.

Enhanced Search Functionality

The recent update to our Accordion component improves content discoverability by allowing users to search through all content, including collapsed sections, using the browser’s search function (Cmd+F / Ctrl+F).

Usage Examples

Here are some examples of how to use the Accordion Group component:

Example
Markdown
Simple Text Content

This is a basic example with text content.

With Code Snippets

You can include code snippets within Accordions:

1function greet(name) {
2 console.log(`Hello, ${name}!`);
3}
Nested Components

Accordions can contain other components:

A sample image
Sample image