Skip to content

DisplayAccordion ​

Panels that open and close, built on native details elements. With a single item open at a time the browser does the exclusivity (details name), and hidden until-found lets the browser search inside closed panels. The open item can live in the URL.

ts
import { DisplayAccordion } from '@zairakai/vue-components/Display'

Usage ​

vue
<DisplayAccordion />

Example ​

What is it?

Panels built on native details elements.

Is it accessible?

Arrow keys move between the headers.
vue
<template>
  <DisplayAccordion>
    <DisplayAccordionItem
      id="one"
      title="What is it?"
      >Panels built on native details elements.</DisplayAccordionItem
    >
    <DisplayAccordionItem
      id="two"
      title="Is it accessible?"
      >Arrow keys move between the headers.</DisplayAccordionItem
    >
  </DisplayAccordion>
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuestring|arrayundefinedThe open item: its id in single mode, an array of ids in multiple mode.
multiplebooleanfalse
queryParamstringKeep the open item in this query parameter of the URL (?faq=shipping, or ?faq=a,b when multiple).

Events ​

NameDescription
update:modelValue

Slots ​

NameDescription
default

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.