https://anotherplanet-io.github.io/Next-React-Components/
This project is inspired by Bootstrap, Material design and more.
Next React Components 100% JS and JSX
Write less code.
import { Container, Row, Cell } from '../packages/ap-layout-grid'
<Container>
<Row>
<Cell>
Hello World
</Cell>
<Cell>
Col 2
</Cell>
<Cell>
Col 3
</Cell>
</Row>
</Container>
<Container>
<Row>
<Cell style={{ backgroundColor: 'teal' }}>
<h1>Hello World<h1>
</Cell>
<Cell>
Col 2
</Cell>
<Cell>
Col 3
</Cell>
</Row>
</Container>
Use styled-jsx V2 Full, scoped and component-friendly CSS support for JSX (rendered on the server or the client).
No CSS dependence.
Inspired by Google Material.io layout grid.
Containers are fluid by default.
Set a max width:
<Container maxWidth={'1024px'}>
…
</Container>
Centered by default
<Container maxWidth={'1024px'} align={'left'}>
…
</Container>
- Margin: 16px
- Gutter: 16px
- Columns grid: 4
- Default span: 4
- Margin: 16px
- Gutter: 16px
- Columns grid : 8
- Default span: 4
- Breakpoints: 480px
- margin: 24px
- gutter: 24px
- Columns grid : 12
- Default span: 4
- breakpoints: 840px