Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Import
import Accordion from "$lib/components/Accordion.svelte"; Simple Accordion
To become a better person, to help others, and to leave the world a better place than you found it.
Read books, listen to podcasts, and surround yourself with people who inspire you.
Rich Content Accordion
Custom HTML Content
This is an example of rich content inside an accordion.
- Support for HTML
- Markdown-style content
- Custom components
This panel shows interactive elements:
Properties
Name
Type
Description
items
Type
AccordionItem[]
Default: []
The items to display in the accordion.
multiple
Type
boolean
Default: false
Whether the accordion allows multiple items to be open at once.