#066
Multiple
An Accordion that lets several of its three items stay open at once.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Multiple" pattern (@codeatlasdev/ui demo #066, surfaces/accordion) in my app.
Call get_demo({ ids: ["#066"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Reference or feature lists where users compare multiple sections without the others collapsing.
Keep these library parts, with the props and tokens the demo uses:
- Accordion, AccordionItem from "@codeatlasdev/ui"
Behaviour to keep:
- `<Accordion type="multiple">`
- 3 items: `<AccordionItem value="b1" title="Svelte 5 runes">`, `value="b2" title="Headless primitives"`, `value="b3" title="CSS custom properties"`
- Item content is plain text passed as children
- The accordion is uncontrolled, nothing is bound
- Wrapped in `.wrap` with `max-width: 560px`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Accordion
@codeatlasdev/ui - AccordionItem
@codeatlasdev/ui
How it is built
- `<Accordion type="multiple">`
- 3 items: `<AccordionItem value="b1" title="Svelte 5 runes">`, `value="b2" title="Headless primitives"`, `value="b3" title="CSS custom properties"`
- Item content is plain text passed as children
- The accordion is uncontrolled, nothing is bound
- Wrapped in `.wrap` with `max-width: 560px`
Related
Loading source.