The Accordion component allows you to create expandable sections in your documentation. Content within accordions is searchable using browser search (cmd+f) even when collapsed. The component is optimized for SEO with server-side HTML generation, ensuring search engines can properly index all content within accordions.

Properties

title
stringRequired

The title shown in the accordion header

children
string | JSXRequired

The content to be displayed when the accordion is expanded. Can include text, markdown, and components.


This is an example of an accordion component. When clicked, it expands to reveal this additional content.

Built with