Components / Layout

Accordion

Stacked collapsible panels, single or multiple open.

@ruckc/truss-ui Layout

Import

import { Accordion } from '@ruckc/truss-ui';

Playground

open

API

PropTypeDefaultDescription
items required { id: string; title: string; disabled?: boolean }[]—The items to render.
open bindable string[][]Ids of expanded items.
multiple booleanfalseAllow more than one.
body required snippet Snippet<[id: string]>—Body content, as a Svelte snippet.
/docs/accordion Truss UI · MIT