SpecOS SpecOS icon Styleguide

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

Rich Content Accordion

Properties

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.