- Docs
- Components
- 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.
Yes. Admins can enforce MFA across Acme Pvt Ltd, with exceptions per role.
SAML 2.0 and OpenID Connect, for inbound and outbound federation.
Heading level
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.
Yes. Admins can enforce MFA across Acme Pvt Ltd, with exceptions per role.
SAML 2.0 and OpenID Connect, for inbound and outbound federation.
<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>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.
SAML 2.0 and OpenID Connect, for inbound and outbound federation.
<Accordion multiple defaultValue={["passkeys", "mfa"]}>…</Accordion>04
Disabled
disabled on a section keeps it shut; on the Accordion, every section.
GST at 18%. GSTIN 29ABCDE1234F1Z5.
INV-2026-0412
Available on the Business plan.
<AccordionItem value="einvoice" title="E-invoicing (IRN)" disabled>
Available on the Business plan.
</AccordionItem>05
Heading level
headingLevel: each trigger sits in a heading, h3 by default. One level under the heading above it.
Advanced options
Access tokens 1 hour, refresh tokens 30 days.
12 hours, or 30 minutes idle.
No ranges yet.
<Heading level={3}>Advanced options</Heading>
<Accordion>
<AccordionItem value="tokens" headingLevel={4} title="Token lifetimes">…</AccordionItem>
</Accordion>06
Open all
value and onValueChange, controlled: a button opens or closes every section.
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.
SAML 2.0 and OpenID Connect, for inbound and outbound federation.
const [open, setOpen] = useState<string[]>([]);
<Button variant="ghost" onClick={() => setOpen(all ? [] : values)}>Open all</Button>
<Accordion multiple value={open} onValueChange={setOpen}>…</Accordion>