Controls

Accordion

Stacked headings that expand to reveal their content.

npx shadcn-svelte@latest add http://localhost:5173/r/accordion.json

Single

One panel open at a time; opening another closes the first. The height eases between 0 and the content's height over 200ms, the chevron flips on the same curve, and a click mid-way reverses from where it is.

light
dark

Multiple

Any number of panels open at once.

light
dark

In a card, with a disabled item

Items divide themselves with hairlines and leave the last edge to the container. A disabled item can't be opened.

light
dark