English | Tiếng Việt | 中文
Headless disclosure primitives for modern UI frameworks.
Disclosure ships two independent primitives:
- Collapsible — a single open/closed panel
- Accordion — grouped panels with single or multiple selection
Behavior and accessibility only — no colors, icons, or layout. Height animation is built in and enabled by default. Style with your own CSS via data-slot and data-state.
Note Disclosure is not a replacement for a full UI library. Use it when Accordion or Collapsible in your kit is hard to restyle — or when you only need that one primitive and don’t want to pull in a large design system.
| Package | Framework | Documentation |
|---|---|---|
@zealakit/disclosure-react |
React 18+ | packages/react/README.md |
@zealakit/disclosure-vue |
Vue 3.5+ | packages/vue/README.md |
@zealakit/disclosure-svelte |
Svelte 5 | packages/svelte/README.md |
@zealakit/disclosure-vanilla |
Vanilla JS / static HTML | packages/vanilla/README.md |
Each package is independently installable. There is no shared runtime package.
Full API, props, and usage guides live in the package docs linked above.
Use your preferred package manager (npm, pnpm, yarn, bun, …):
npm i @zealakit/disclosure-react
npm i @zealakit/disclosure-vue
npm i @zealakit/disclosure-svelte
npm i @zealakit/disclosure-vanillapnpm install
pnpm build
pnpm dev:react
pnpm dev:vue
pnpm dev:svelte
pnpm dev:vanilla
pnpm dev:nextjsFramework-specific instructions for AI coding agents:
MIT © Zealakit
