AppAccordion
Sections that open and close (APG Accordion). Each header is a <button aria-expanded aria-controls> inside a real heading, so the page outline stays right. A panel opens at its full height at once and fades its content in (DESIGN-BIBLE §10: no height animation); closing is instant. Up, Down, Home and End move between headers; every header stays in the Tab order.
Install: pnpm add-component AppAccordion
Basic usage
One panel open at a time. Open panels are regions named by their header (up to six panels, as APG suggests).
Multiple, plain
API
modelValue(string[]): Keys of the open panels (use v-model).items(AccordionItem[]): { key, title, content?, icon?, disabled? }. A slot named after the key replaces content.multiple(boolean): Let several panels stay open. Off: opening one closes the others.headingLevel(2 | 3 | 4 | 5 | 6): The heading around each header, to fit the page outline.variant('card' | 'plain'): card: a bordered level-1 surface. plain: rules between sections only.