Skip to content
CtrlK

ArdoAccordion

On this page

Collapsible documentation content section.

Works standalone or inside an ArdoAccordionGroup. Collapsed content stays in the pre-rendered HTML (hidden="until-found"), so it remains visible to search engines and the browser's find-in-page.

import { ArdoAccordion } from "ardo/ui"

<ArdoAccordion title={…}>{children}</ArdoAccordion>

Props

NameTypeRequiredDescription
titleReactNodeYesAccordion summary/title.
childrenReactNodeYesCollapsible content.
defaultOpenbooleanNoWhether the accordion starts open.
iconReactNode | stringNoOptional built-in or custom registered icon name, or a React node shown before the title.
headingLevelArdoAccordionHeadingLevelNoHeading level used for the accordion trigger.
valuestringNoStable item value used by AccordionGroup only-one-open mode.
classNamestringNoAdditional CSS class.

Props type: ArdoAccordionProps