ComponentsDisclosure
Accordion
Expandable content sections
Examples
Basic Accordion
{
"type": "accordion",
"items": [
{
"title": "Section 1",
"content": "Content for section 1"
},
{
"title": "Section 2",
"content": "Content for section 2"
},
{
"title": "Section 3",
"content": "Content for section 3"
}
]
}Schema
interface AccordionSchema {
type: 'accordion';
items: Array<{
title: string;
content: string | SchemaNode;
}>;
defaultOpen?: number[];
multiple?: boolean;
}