# @hi-ui/use-toggle

> A sub-package for @hi-ui/hooks.

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

## Install

```sh
npm install @hi-ui/use-toggle
pnpm add @hi-ui/use-toggle
yarn add @hi-ui/use-toggle
bun add @hi-ui/use-toggle
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2026-06-06 |
| First published | 2021-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 880 |
| Author | HiUI |
| Maintainers | sivan, solarjoker, lanzhi_lee, zhouyun |

## Links

- npm: https://www.npmjs.com/package/@hi-ui/use-toggle
- Repository: https://github.com/XiaoMi/hiui
- Homepage: https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-toggle#readme
- Issues: https://github.com/XiaoMi/hiui/issues
- npm.io page: https://npm.io/package/@hi-ui/use-toggle

## Dependencies (2)

- [@hi-ui/use-latest](https://npm.io/package/@hi-ui/use-latest.md) ^5.0.0
- [@hi-ui/use-uncontrolled-state](https://npm.io/package/@hi-ui/use-uncontrolled-state.md) ^5.0.0

## Recent versions

- 5.0.0 (latest) — 2026-06-06
- 5.0.0-rc.0 (rc) — 2026-06-02
- 5.0.0-experimental.0 (experimental) — 2026-02-05
- 5.0.0-alpha.0 (alpha) — 2025-09-29
- 5.0.0-canary.2 (canary) — 2025-07-06
- 4.0.0-beta.6 (feature) — 2022-07-13
- 5.0.0-canary.1 — 2025-07-04
- 5.0.0-canary.0 — 2025-05-14
- 4.0.4 — 2023-11-21
- 4.0.3 — 2023-11-21
- 4.0.2 — 2023-11-21
- 4.0.1 — 2022-08-15
- 4.0.0 — 2022-07-23
- 4.0.0-beta.5 — 2022-05-17
- 4.0.0-beta.4 — 2022-04-15
- … 15 more at https://npm.io/package/@hi-ui/use-toggle/versions

## README

# `@hi-ui/use-toggle`

> TODO: description

## Usage

```
const useToggle = require('@hi-ui/use-toggle');

// TODO: DEMONSTRATE API
```

---
_Source: https://npm.io/package/@hi-ui/use-toggle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
