# Accordion — Solid

> Solid letterpress accordion — accent-filled header blocks when open, a warm paper surface, hard borders with offset press shadows, folio numerals, grid-row height animation, chevron rotation, and full keyboard navigation, fully token-driven in a bold editorial identity.

- Category: Accordion
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Tensor
- Dark mode: yes
- Access: free (sign in to copy the code)
- Tags: faq, disclosure, data-display
- Page: https://builder.atheros.ai/components/accordion-solid
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_020/preview-84e19675d6a1.webp

## Features

- APG disclosure pattern: each `<button>` is the sole child of an `<h2>`, with `aria-expanded`, `aria-controls`, and a labelled panel hidden from assistive technology when collapsed
- Two expand modes via `data-mode`: `single` closes siblings, `multi` toggles independently
- Layout-safe height animation using the CSS `grid-template-rows` 0fr to 1fr trick
- Editorial letterpress identity: solid plum-filled header block when open, 2px ink borders, offset press shadows, ruled-paper backdrop
- CSS-counter folio numerals (`01`, `02`, ...) stamped on every header — pure CSS, no markup changes
- Chevron icon rotates 180 degrees on expand with a content fade and slide
- Keyboard navigation: Up/Down between headers, Home/End to jump, Enter/Space to toggle
- Responsive layout down to 320px with prefers-reduced-motion support

## Accessibility

- **Disclosure pattern** — Each header `<button>` is the sole child of an `<h2>` and controls a labelled `role="region"` panel
- **Collapsed panels** — `aria-hidden` and `inert` apply immediately; `hidden` applies after the closing transition and is cancelled on reopen
- **Keyboard nav** — `ArrowUp`/`ArrowDown` move focus, `Home`/`End` jump, `Enter`/`Space` toggle
- **Focus indicators** — `:focus-visible` with `--ring` outline on all elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations
- **Viewport** — `100dvh` for mobile-safe viewport height

## Keyboard shortcuts

- `ArrowDown` — Move focus to next header
- `ArrowUp` — Move focus to previous header
- `Home` — Move focus to first header
- `End` — Move focus to last header
- `Enter` — Toggle focused panel
- `Space` — Toggle focused panel

## Common questions

**Which frameworks is Accordion — Solid available in?**

Accordion — Solid ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Accordion — Solid free?**

Yes. Accordion — Solid is a free component: preview it without an account, and sign in with a free Atheros account to copy or download the full source and customise it with AI.

**Does Accordion — Solid support dark mode?**

Yes. Accordion — Solid ships light and dark themes, both drawn from the Tensor design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Accordion — Solid live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/accordion-solid

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
