1.0.0-alpha.1 • Published 3 years ago

@andban/snapgrid-react v1.0.0-alpha.1

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

snapgrid-react

A React wrapper arround snapgrid-css

Installation

$ npm install snapgrid-css snapgrid-react
# or
$ yarn add snapgrid-css snapgrid-react

Usage

Creates a container that will collapse at the given breakpoint and allow horizontal or vertical scrolling.

<Snapgrid [horizontal|vertical] el={element|string="div} collapse="xs|sm|md|lg|xl" {...otherProps}>
  // ...
</Snapgrid>

A container that will expand to full width/height as soon as the parent Snapgrid container collapses.

<Snapgrid horizontal collapse="md">
  <Snap>Container A</Snap>
  <Snap>Container B</Snap>
</Snapgrid>
1.0.0-alpha.1

3 years ago