# @visx/react-spring

> visx primitives that rely on react-spring for animation

Latest version **4.0.0** (published 2026-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @visx/react-spring
pnpm add @visx/react-spring
yarn add @visx/react-spring
bun add @visx/react-spring
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-06-11 |
| First published | 2020-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 31.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 21116 |
| Maintainers | vx-hshoff, hshoff, christopher.card.williams |
| Keywords | visx, react, d3, visualizations, charts, animation, react-spring |

## Links

- npm: https://www.npmjs.com/package/@visx/react-spring
- Repository: https://github.com/airbnb/visx
- Homepage: https://github.com/airbnb/visx#readme
- Issues: https://github.com/airbnb/visx/issues
- npm.io page: https://npm.io/package/@visx/react-spring

## Dependencies (5)

- [@visx/axis](https://npm.io/package/@visx/axis.md) 4.0.0
- [@visx/grid](https://npm.io/package/@visx/grid.md) 4.0.0
- [@visx/text](https://npm.io/package/@visx/text.md) 4.0.0
- [classnames](https://npm.io/package/classnames.md) ^2.3.1
- [@visx/scale](https://npm.io/package/@visx/scale.md) 4.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2026-06-11
- 4.0.0-alpha.18 (next) — 2026-06-11
- 1.3.0-alpha.0 (prerelease) — 2020-12-09
- 0.0.200-alpha.0 (alpha) — 2020-09-16
- 4.0.0-alpha.17 — 2026-06-11
- 4.0.0-alpha.16 — 2026-06-11
- 4.0.0-alpha.15 — 2026-06-11
- 4.0.0-alpha.14 — 2026-06-11
- 4.0.0-alpha.12 — 2026-06-11
- 4.0.0-alpha.11 — 2026-04-14
- 4.0.0-alpha.9 — 2026-04-14
- 4.0.0-alpha.3 — 2026-04-13
- 4.0.0-alpha.2 — 2026-04-13
- 4.0.0-alpha.1 — 2026-04-13
- 4.0.1-alpha.0 — 2025-11-11
- … 54 more at https://npm.io/package/@visx/react-spring/versions

## README

# @visx/react-spring

<a title="@visx/react-spring npm downloads" href="https://www.npmjs.com/package/@visx/react-spring">
  <img src="https://img.shields.io/npm/dm/@visx/react-spring.svg?style=flat-square" />
</a>

Although `visx` is largely unopinioned on animation, there is value in abstracting the complexity +
boilerplate of building **animated** `visx` visualization components. This package requires
`react-spring` as a `peerDependency` (to be compatible with any usage within your app) and exports
all `visx` components that depend on `react-spring`.

[`react-spring`](https://www.react-spring.io/) provides performant primitives for animating react
components and is our recommended library for making animated charts. In order to minimize
`react-spring` as a dependency across other `visx` packages, we've consolidated components which
depend on it here.

## Installation

```
npm install --save react-spring @visx/react-spring
```

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