# react-brk

> Breakpoints React component

Latest version **1.0.1** (published 2018-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-brk
pnpm add react-brk
yarn add react-brk
bun add react-brk
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-15 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | woile |
| Maintainers | woile |
| Keywords | react-component, breakpoints, reponsive, media-query, brk, react, layout |

## Links

- npm: https://www.npmjs.com/package/react-brk
- Repository: https://github.com/woile/react-brk
- Homepage: https://github.com/woile/react-brk#readme
- Issues: https://github.com/woile/react-brk/issues
- npm.io page: https://npm.io/package/react-brk

## Dependencies (1)

- [react-responsive](https://npm.io/package/react-responsive.md) ^4.0.4

## 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

- 1.0.1 (latest) — 2018-02-15
- 1.0.0 — 2018-02-15

## README

# React Breakpoints (react-brk)

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]

## About

Easy, ready to use, well defined, react media queries taken from [react-responsive](https://github.com/contra/react-responsive) and packed here.

This package lacks originality and does not introduce anything new.

It's just a wrapper of [react-responsive](https://github.com/contra/react-responsive) made for convinience, just plug and play.

All the credit goes to the folks of [react-responsive](https://github.com/contra/react-responsive).


## Installation

`npm install react-brk --save`

`yarn add react-brk`

## Breakpoints

`Desktop` minWidth: 992

`Tablet` minWidth: 768, maxWidth: 991

`Mobile` maxWidth: 767

`Default` minWidth: 768

## Example

    import { Desktop, Tablet, Mobile, Default } from 'react-brk'

    const app = () => (
      <div>
        <Desktop>
          <div>Desktop (width > 992px)</div>
        </Desktop>
        <Tablet>
          <div>Tablet (768 < width < 991)</div>
        </Tablet>
        <Mobile>
          <div>Mobile (width < 767)</div>
        </Mobile>
        <Default>
          <div>Default (width > 768)</div>
        </Default>
      </div>
    )


[build-badge]: https://img.shields.io/travis/Woile/react-brk/master.png?style=flat-square
[build]: https://travis-ci.org/Woile/react-brk

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/Woile/react-brk/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/Woile/react-brk

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