Components / Layout
Accordion
Stacked collapsible panels, single or multiple open.
@ruckc/truss-ui Layout
Import
import { Accordion } from '@ruckc/truss-ui'; Playground
open
API
| Prop | Type | Default | Description |
|---|---|---|---|
items required | { id: string; title: string; disabled?: boolean }[] | — | The items to render. |
open bindable | string[] | [] | Ids of expanded items. |
multiple | boolean | false | Allow more than one. |
body required snippet | Snippet<[id: string]> | — | Body content, as a Svelte snippet. |