Skip to main content
  1. Docs
  2. Components
  3. Navigation

Accordion

Sections that fold, ruled between. Each title is a heading and a button.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<h3><button>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

A phishing-resistant credential bound to your device: face, fingerprint or screen lock.

Heading level
faq.tsx
import { Accordion, AccordionItem } from "@qeetrix/react";

<Accordion defaultValue={["passkeys"]}>
  <AccordionItem value="passkeys" title="What is a passkey?">…</AccordionItem>
  <AccordionItem
    value="mfa"
    title="Can I require MFA for everyone?"
  >
    …
  </AccordionItem>
  <AccordionItem
    value="sso"
    title="Which SSO protocols are supported?"
  >
    …
  </AccordionItem>
</Accordion>

02

Questions

One open at a time: opening a section closes the one that was open.

A phishing-resistant credential bound to your device: face, fingerprint or screen lock.

03

Several open

multiple: each section opens and closes on its own.

A phishing-resistant credential bound to your device: face, fingerprint or screen lock.

Yes. Admins can enforce MFA across Acme Pvt Ltd, with exceptions per role.

04

Disabled

disabled on a section keeps it shut; on the Accordion, every section.

GST at 18%. GSTIN 29ABCDE1234F1Z5.

05

Heading level

headingLevel: each trigger sits in a heading, h3 by default. One level under the heading above it.

Advanced options

06

Open all

value and onValueChange, controlled: a button opens or closes every section.

Next — AccordionUsage