# @brix-ui/hooks

> Batch of useful UI-related React hooks

Latest version **2.2.2** (published 2021-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @brix-ui/hooks
pnpm add @brix-ui/hooks
yarn add @brix-ui/hooks
bun add @brix-ui/hooks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2021-01-12 |
| First published | 2020-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 3 |
| Unpacked size | 24.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Author | uStudio Company |
| Maintainers | brix-ui |
| Keywords | react, typescript, hooks |

## Links

- npm: https://www.npmjs.com/package/@brix-ui/hooks
- Repository: https://github.com/uStudioTeam/brix-ui
- Homepage: https://github.com/uStudioTeam/brix-ui/blob/master/README.md
- npm.io page: https://npm.io/package/@brix-ui/hooks

## Dependencies (3)

- [honks](https://npm.io/package/honks.md) ^0.4.1
- [@brix-ui/types](https://npm.io/package/@brix-ui/types.md) ^2.2.2
- [@brix-ui/utils](https://npm.io/package/@brix-ui/utils.md) ^2.2.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.2.2 (latest) — 2021-01-12
- 2.2.1 — 2021-01-11
- 2.2.0 — 2021-01-11
- 2.1.1 — 2021-01-08
- 2.1.0 — 2020-11-11
- 2.0.0 — 2020-11-05
- 2.0.0-rc.1 — 2020-10-28

## README

# @brix-ui/hooks

Batch of useful UI-related React hooks.

---

## Installation

```shell script
npm i @brix-ui/hooks # react react-dom
```

```shell script
yarn add @brix-ui/hooks # react react-dom
```

> Make sure to have `react` and `react-dom` installed in your package as they are included in our peer dependencies.

## Usage

Every hook functions is exported by default and should be used inside React components with respect to the
[rules of hooks](https://reactjs.org/docs/hooks-rules.html).

```typescript jsx
import useMediaQuery from '@brix-ui/hooks/use-media-query';

const Component = () => {
  const isMd = useMediaQuery('screen and (min-width: 768px)');

  // ...
};
```

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