---
name: accordion-usage
description: >
Use after component-usage-ux when an app needs @techsio/ui-kit Accordion for
collapsible sections using the Zag.js-backed compound anatomy, supported
variant, shadow, size, value, multiple, and collapsible props.
metadata:
component_version: "1.0.0"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
requires: "component-usage-ux zag-compound-components app-token-overrides ux-guidelines"
sources: "libs/ui/src/molecules/accordion.tsx libs/ui/src/tokens/components/molecules/_accordion.css libs/ui/stories/molecules/accordion.stories.tsx libs/ui/src/molecules/accordion.figma.ts https://zagjs.com/components/react/accordion"
---
# @techsio/ui-kit Accordion Usage
Use Accordion for related collapsible content sections. Do not build disclosure
behavior with local state and native buttons when this component fits.
## UX/UI guidelines
House rules come from the `ux-guidelines` skill (writing, formatting, states,
where actions and feedback live). This section applies them to `Accordion`.
**Use it when**
- Optional or secondary content the user may want to expand: FAQs, shipping details, advanced settings.
- Long pages where users scan headings and open only what they need.
- Mobile layouts that stack content which sits side by side on desktop (with care — see Don't).
**Use something else when**
| Need | Use instead |
| --- | --- |
| Peer views of the same object the user switches between | Tabs |
| Ordered steps that must be completed in sequence | Steps |
| Navigation links in a tree | VerticalNavigation |
| Content everyone needs to read (prices, legal terms, errors) | keep it visible, no disclosure |
**Do**
- Write triggers as short noun phrases or questions that predict the content (`Shipping and returns`, `Can I change my order?`).
- Open the first item by default when it answers the most common question; otherwise start collapsed.
- Allow multiple open items for reference content; single-open only when items are mutually exclusive steps.
- Keep the chevron/indicator from the component — it is the only affordance that the heading is interactive.
**Don't**
- Hide required form fields or validation errors inside a collapsed item.
- Nest accordions inside accordions.
- Put primary actions only inside a collapsed panel.
- Use an accordion for one item — show the content or use a Link to a detail page.
**Copy and states**
- Trigger text in sentence case, no trailing colon or punctuation.
- If a collapsed section contains an error, open it on submit and focus the field (see ux-guidelines/states).
## Setup
```tsx
import { Accordion } from "@techsio/ui-kit/molecules/accordion"