# nkbt/react-collapse

Component-wrapper for collapse animation with react-motion for elements with variable (and dynamic) height

Repository: https://github.com/nkbt/react-collapse
Canonical: https://ross.abutalabs.com/products/react-collapse
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-10-19T15:32:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3975, "days_push": 1414, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1134, forks 109 (observed 2026-08-28T04:03:43.082338+00:00)

## What it is
A React component wrapper that provides smooth collapse/expand animations for elements with variable or dynamic height, built on react-motion. It supports always-mounted content and an unmount-on-collapse variant.

## Use cases
- animate expanding and collapsing panels with dynamic height
- build accordion or FAQ sections in React
- slide-down/slide-up reveal of content
- collapse content that unmounts when hidden
- smooth height transitions without fixed heights

## When to choose
- you need collapse animations for content of unknown or changing height
- you want a small focused React component with CSS-transition-based animation
- you need an option to unmount collapsed content for performance

## When to avoid
- you are not using React
- you need full accordion suites with keyboard/accessibility handling built in
- the project needs actively developed dependencies with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: frontend, web-development
- platform: browser
- tags: react, collapse, accordion, slide-toggle, react-motion, nodejs

## Member repositories
- nkbt/react-collapse (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:43.082338+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:37:21.681793+00:00, confidence not recorded.
  - readme: https://github.com/nkbt/react-collapse (fetched 2026-08-28T04:03:43.082338+00:00, sha ff351e841046)
  - registry_npm: https://registry.npmjs.org/react-collapse (fetched 2026-08-29T12:42:00.542606+00:00, sha e8c91e4b69bc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
