|
1 | 1 |
|
2 | 2 | # React CSS Grid
|
3 | 3 |
|
4 | | -React layout component based on [CSS Grid Layout][spec] |
| 4 | +React layout component based on [CSS Grid Layout][spec] ([Demo][demo]) |
5 | 5 |
|
6 | 6 | [![Build Status][travis-badge]][travis]
|
7 | 7 |
|
@@ -33,10 +33,35 @@ class App extends React.Component {
|
33 | 33 | }
|
34 | 34 | ```
|
35 | 35 |
|
| 36 | + |
36 | 37 | ## Features
|
37 | 38 |
|
38 | | -- Simple, encapsulated grid layout API |
| 39 | +- Responsive grid layout with zero media queries |
| 40 | +- Simple API for handling tiled layouts |
| 41 | +- Customizable column width and gutters |
| 42 | + |
| 43 | + |
| 44 | +## Props |
| 45 | + |
| 46 | +- `width` (number or string) width at which child elements will break into columns - either a number pixel value or any valid CSS width value as a string |
| 47 | +- `gap` (number or string) gutter (`grid-gap`) between columns - either a number pixel value or any valid CSS width value as a string |
| 48 | + |
| 49 | + |
| 50 | +## Browser Support |
| 51 | + |
| 52 | +See http://caniuse.com/#feat=css-grid |
| 53 | + |
| 54 | +## Related |
| 55 | + |
| 56 | +- [Grid Styled](https://github.com/jxnblk/grid-styled) |
| 57 | +- [styled-components](https://github.com/styled-components/styled-components) |
| 58 | +- [CSS Grid Layout Module][spec] |
| 59 | +- [CSS Grid Layout on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) |
| 60 | +- [Grid by Example](https://gridbyexample.com/video/series-auto-fill-auto-fit/) |
| 61 | +- [Spring Into CSS Grid](http://jonibologna.com/spring-into-css-grid/) |
| 62 | + |
39 | 63 |
|
40 | 64 | [spec]: https://www.w3.org/TR/css-grid-1/
|
| 65 | +[demo]: http://jxnblk.com/react-css-grid/ |
41 | 66 |
|
42 | | -MIT License |
| 67 | +[MIT License](LICENSE.md) |
0 commit comments