RE

React Grid Layout

react-grid-layout

A draggable and resizable grid layout with responsive breakpoints, for React.

Component Libraries
react
grid
drag
draggable
resize
resizable
fluid
responsive
react-grid-layout
Component Libraries
Stars
22k
Weekly
0
Open issues
60
Bundle
~60 kB

Installation

npm install react-grid-layout

Code example

import { Button } from "react-grid-layout";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Samuel Reed
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 60 open issues on GitHub

FAQs

Alternatives & similar libraries