React-Accordion
An unstyled, accessible accordion library for React apps and design systems.
Features
- Unstyled React accordion components
- React hooks for Headless UI
- WAI-ARIA compliant
- Keyborad navigable
- Support animation
- Can be controlled or uncontrolled
- Control to expand/collapse specific item or all items
- Level 3 support of React 18 concurrent rendering
- Support server-side rendering
- Small and tree-shakable (~3kB)
- Strongly typed API with TypeScript
Install
with npm
or with Yarn
Usage
Edit on CodeSandbox
Visit more examples and docs
License
MIT Licensed.