Skip to main content

Items Accordion

A collapsible accordion component useful for FAQs or organizing content into expandable sections.

Component Preview

Props

PropTypeDescription
itemsAccordionItem[]Array of items to display.
titlestringOptional title for the section.
subtitlestringOptional subtitle for the section.
allowMultiplebooleanWhether multiple items can be open at once. Default: false.
classNamestringOptional CSS class name for the wrapper.

AccordionItem Interface

PropertyTypeDescription
idstringUnique identifier for the item.
titlestringTitle or question text.
contentstringContent or answer text to display when expanded.

JSON Data Example

{
"type": "ItemsAccordion",
"data": {
"title": "Frequently Asked Questions",
"subtitle": "Everything you need to know about the product.",
"className": "custom-accordion-class",
"allowMultiple": false,
"items": [
{
"id": "item-1",
"title": "What is the return policy?",
"content": "You can return any item within 30 days of purchase."
},
{
"id": "item-2",
"title": "Do you ship internationally?",
"content": "Yes, we ship to over 50 countries worldwide."
}
]
}
}