Accordions
Divide content into collapsible sections.
import { Accordion, AccordionItem } from '@skeletonlabs/skeleton';
Demo
Auto-Collapse Mode
Enable the autocollapse
setting to limit display to one accordion panel at a time.
Open on Load
Set the visible items on load with open
. When using autocollapse
mode, this is limited
to a single item.
<AccordionItem open>...</AccordionItem>
Custom Icons
Set the iconOpen
and iconClosed
slots within the Accordion Item component.