# @zag-js/collapsible

> Core logic for the collapsible widget implemented as a state machine

Latest version **1.44.0** (published 2026-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zag-js/collapsible
pnpm add @zag-js/collapsible
yarn add @zag-js/collapsible
bun add @zag-js/collapsible
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.44.0 |
| Published | 2026-09-13 |
| First published | 2024-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 46 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5217 |
| Author | Segun Adebayo <sage@adebayosegun.com> |
| Maintainers | segunadebayo |
| Keywords | js, machine, xstate, statechart, component, chakra-ui, collapsible |

## Links

- npm: https://www.npmjs.com/package/@zag-js/collapsible
- Repository: https://github.com/chakra-ui/zag/tree/main/packages/collapsible
- Homepage: https://github.com/chakra-ui/zag#readme
- Issues: https://github.com/chakra-ui/zag/issues
- npm.io page: https://npm.io/package/@zag-js/collapsible

## Dependencies (5)

- [@zag-js/core](https://npm.io/package/@zag-js/core.md) 1.44.0
- [@zag-js/types](https://npm.io/package/@zag-js/types.md) 1.44.0
- [@zag-js/utils](https://npm.io/package/@zag-js/utils.md) 1.44.0
- [@zag-js/anatomy](https://npm.io/package/@zag-js/anatomy.md) 1.44.0
- [@zag-js/dom-query](https://npm.io/package/@zag-js/dom-query.md) 1.44.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.44.0 (latest) — 2026-09-13
- 2.0.0-next.3 (next) — 2026-09-14
- 0.0.0-v1-beta-20250222173217 (v1-beta) — 2025-02-22
- 0.0.0-dev-20240723090825 (dev) — 2024-07-23
- 2.0.0-next.2 — 2026-08-31
- 1.43.3 — 2026-08-20
- 1.43.2 — 2026-08-20
- 1.43.1 — 2026-08-16
- 2.0.0-next.1 — 2026-08-01
- 1.43.0 — 2026-07-29
- 1.42.0 — 2026-06-29
- 1.41.2 — 2026-06-05
- 2.0.0-next.0 — 2026-06-04
- 1.41.1 — 2026-05-26
- 1.41.0 — 2026-05-21
- … 427 more at https://npm.io/package/@zag-js/collapsible/versions

## README

# @zag-js/collapsible

Core logic for the collapsible widget implemented as a state machine

## Installation

```sh
yarn add @zag-js/collapsible
# or
npm i @zag-js/collapsible
```

## Contribution

Yes please! See the [contributing guidelines](https://github.com/chakra-ui/zag/blob/main/CONTRIBUTING.md) for details.

## Licence

This project is licensed under the terms of the [MIT license](https://github.com/chakra-ui/zag/blob/main/LICENSE).

---
_Source: https://npm.io/package/@zag-js/collapsible · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
