# react-breakpoints-id

> Breakpoints are customizable widths that determine how your responsive layout without render

Latest version **0.0.15** (published 2022-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-breakpoints-id
pnpm add react-breakpoints-id
yarn add react-breakpoints-id
bun add react-breakpoints-id
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2022-05-20 |
| First published | 2022-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 70.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ugi Ispoyo Widodo |
| Maintainers | ugiispoyo |
| Keywords | breackpoints, responsive breakpoints, react breakpoints, react breakpoints id, breakpoints layout |

## Links

- npm: https://www.npmjs.com/package/react-breakpoints-id
- Repository: https://github.com/ugiispoyo/React-BreakPoints-Id
- Homepage: https://github.com/ugiispoyo/React-BreakPoints-Id#readme
- Issues: https://github.com/ugiispoyo/React-BreakPoints-Id/issues
- npm.io page: https://npm.io/package/react-breakpoints-id

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.15 (latest) — 2022-05-20
- 0.0.14 — 2022-05-20
- 0.0.13 — 2022-05-20
- 0.0.12 — 2022-05-20
- 0.0.11 — 2022-05-20
- 0.0.10 — 2022-05-19
- 0.0.9 — 2022-05-19
- 0.0.8 — 2022-05-18
- 0.0.7 — 2022-05-18
- 0.0.6 — 2022-05-17
- 0.0.5 — 2022-05-17
- 0.0.4 — 2022-05-17
- 0.0.3 — 2022-05-17
- 0.0.2 — 2022-05-17
- 0.0.1 — 2022-05-17

## README

# React BreakPoints Id

Breakpoints are customizable widths that determine how your responsive layout without render for Reactjs

## Installation

```bash
npm i react-breakpoints-id
```
**or**
```bash
yarn add react-breakpoints-id
```

## Usage Example

```javascript
import React from 'react';
import BreakPoint from 'react-breakpoints-id';

export default function App() {
  return (
    <React.Fragment>
      <BreakPoint breakPoint={['xs']}>
        <p>Only XS</p>
      </BreakPoint>

      <BreakPoint breakPoint={['xs', 'md']}>
        <p>XS to MD</p>
      </BreakPoint>

      <BreakPoint valBreakPoint={{md: 500, lg: 700}} breakPoint={['xs', 'md']}>
        <p>Custom Value Break Point</p>
      </BreakPoint>
    </React.Fragment>
  );
}

```

## Props

No | Name | Type | Description | Default Value | Mandatory
-- | ---- | ---  | --- | --- | ---
1  | valBreakPoint | For custom from width xs, sm, md, lg, xl, xxl | object | { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200, xxl: 1400 } | false
2  | breakPoint | To determine the break point layout to be used. Example: if you use ["xs"] it means that the inner component will render when the device is 0px to 575px, if you use ["md"] it means that the inner component will render when the device is 768px to 991px, if you use ["sm", "lg"] means the inner component will render when the device is 576px to 991px | Array<'xs', 'sm', 'md', 'lg', 'xl', 'xxl'> | - | true

## Break Points 
Extra Small (xs) | Small (sm) | Medium (md) | Large (lg) | X-Large (xl) | XX-Large (xxl) |
-- | -- | -- | -- | -- | --
0px to 575px | 576px to 767px | 768px to 991px | 992px to 1199px | 1200px to 1399px | >= 1400px

## Config For TypeScript

Add in file index.d.ts or global.d.ts

```javascript
declare module 'react-breakpoints-id';
```

<br/>
<hr/>

#### [Live Preview](https://stackblitz.com/edit/react-l7qco7?file=src/App.js)

<br/>

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