react-breakpoint-visualizer
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

react-breakpoint-visualizer


React Breakpoint Visualizer is designed to display the responsive breakpoint for your react application.

If you are using tailwindcss with dark classes, this should also have dark mode enabled.

Preview of the widget at the top of a page in dark mode

Preview React Breakpoint Visualizer

Usage

Installation

You can install react-breakpoint-visualizer using npm:

npm install react-breakpoint-visualizer

Importing

Once you've installed the package, you can import the BreakpointVisualizer component.

import { BreakpointVisualizer } from 'react-breakpoint-visualizer';

Finally add it at the very top of your render tree inside your body tag.

<BreakpointVisualizer
  breakpoints={{
    phone: 0,
    sm: 640,
    md: 768,
    lg: 1024,
    xl: 1200,
    "2xl": 1400,
  }}
/>

The above is the configuration used for the preview image above.


Dependencies

  • "react": "^18.2.0"
  • "use-breakpoint": "^3.1.1"
  • "tailwindcss": "^3.3.3"

License

React Breakpoint Visualizer is ISC licensed.

Buy Me A Coffee

Package Sidebar

Install

npm i react-breakpoint-visualizer

Weekly Downloads

1

Version

1.3.5

License

ISC

Unpacked Size

17.2 kB

Total Files

16

Last publish

Collaborators

  • diiiazote