# @react-aria/switch

> Spectrum UI components in React

Latest version **3.8.1** (published 2026-05-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @react-aria/switch
pnpm add @react-aria/switch
yarn add @react-aria/switch
bun add @react-aria/switch
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.8.1 |
| Published | 2026-05-28 |
| First published | 2020-02-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15855 |
| Maintainers | devongovett, aspro83 |

## Links

- npm: https://www.npmjs.com/package/@react-aria/switch
- Repository: https://github.com/adobe/react-spectrum
- Homepage: https://github.com/adobe/react-spectrum#readme
- Issues: https://github.com/adobe/react-spectrum/issues
- npm.io page: https://npm.io/package/@react-aria/switch

## Dependencies (2)

- [react-aria](https://npm.io/package/react-aria.md) ^3.48.0
- [@swc/helpers](https://npm.io/package/@swc/helpers.md) ^0.5.0

## Recent versions

- 3.8.1 (latest) — 2026-05-28
- 3.0.0-nightly-4693fcc84-260911 (nightly) — 2026-09-11
- 3.0.0-nightly-4693fcc84-260910 — 2026-09-10
- 3.0.0-nightly-d7e8e74e2-260909 — 2026-09-09
- 3.0.0-nightly-d7e8e74e2-260908 — 2026-09-08
- 3.0.0-nightly-1062d083a-260814 — 2026-08-14
- 3.0.0-nightly-6748e03ce-260813 — 2026-08-13
- 3.0.0-nightly-7c0765468-260811 — 2026-08-11
- 3.0.0-nightly-dd1026ce2-260810 — 2026-08-10
- 3.0.0-nightly-7638f4d67-260809 — 2026-08-09
- 3.0.0-nightly-7638f4d67-260808 — 2026-08-08
- 3.0.0-nightly-627955567-260806 — 2026-08-06
- 3.0.0-nightly-1d7a8d442-260805 — 2026-08-05
- 3.0.0-nightly-55180fa10-260805 — 2026-08-05
- 3.0.0-nightly-434c91fc8-260804 — 2026-08-04
- … 1322 more at https://npm.io/package/@react-aria/switch/versions

## README

# @react-aria/switch

This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.

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