Disclosures
Smooth, accessible <details> animations. Zero dependencies. Works everywhere.
Features
- Smooth animations — height transitions powered by the Web Animations API
- Accessible by default — built on native
<details>/<summary>, keyboard navigable, respectsprefers-reduced-motion - Zero dependencies — pure TypeScript/JavaScript with CSS, nothing else
- Framework-agnostic — works with vanilla HTML, React, Vue, Svelte, or any framework
- CSS customizable — design tokens via custom properties, BEM class names, style variants included
Install
npm install @disclosures/coreOr load from a CDN:
<link rel="stylesheet" href="https://unpkg.com/@disclosures/core/dist/styles.css"><script src="https://unpkg.com/@disclosures/core/dist/index.global.js"></script>