1.2.1 • Published 7 years ago

react-cast v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-cast

react-cast image

Make beautiful, animated grid-layouts. Check out the example for advanced usage. This is an early release, so expect more documentation, examples, and tests, soon.

View a demo here.

Install

$ npm install react-cast

Example

var Grid = require('react-cast')
var React = require('react')

var GridContainer = React.createClass({

  render() {
    return (
      <Grid
        width={100}
        height={100}
        columnCount={2}>
          <div key='a'>A</div>
          <div key='b'>B</div>
          <div key='c'>C</div>
      </Grid>
    )
  }
})

Prior-art

This is based on an example provided in the react-motion repo.