Accordion
Collapsible panels with single or multiple expansion modes and full keyboard support.
Preview
Switch the framework picker (top-right of the panel) to render the same demo live in React, Vue, or Angular — same class names, ARIA, and visual output across all three.
Installation
Sisyphos UI ships unified packages for React, Vue, and Angular. Pick the one that matches your stack — every framework exports the same component classes, ARIA semantics, and CSS tokens.
$ pnpm add @sisyphos-ui/reactThen import the bundled stylesheet once at app entry: import "@sisyphos-ui/react/styles.css";
Usage
import { Accordion } from "@sisyphos-ui/react";
export const Faq = () => (
<Accordion defaultValue="install">
<Accordion.Item value="install">
<Accordion.Trigger>How do I install it?</Accordion.Trigger>
<Accordion.Content>pnpm add @sisyphos-ui/react</Accordion.Content>
</Accordion.Item>
</Accordion>
);Multiple expansion
`multiple` lets several panels open at once. Pass a `string[]` to `defaultValue` / `value`.
Ghost variant
Borderless chrome for accordions nested inside other containers.
Disabled item
Mark individual items `disabled`. The trigger stays focusable for screen readers.
Controlled
Sync with external state via `value` + `onValueChange`. Pass `null` to collapse all.
overviewAPI
Props table is being written. See the package README for the complete API surface.
The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README on npm.