Usage
Cellulose can also be used to create a responsive grid. Use the columns property of <Cellulose> to define the number of columns to use, then add <Cell> components with spanOptions props that define responsive behavior
import { Cellulose, Cell } from 'cellulose'
import React from 'react'
export function MyComponent() {
const breakPoints = {
768: 'greater-than-768',
1024: 'greater-than-1024'
}
return (
<Cellulose columns={12} breakPoints={breakPoints}>
<Cell spanOptions={{ 768: 6, 1024: 8 }}>
<div>One</div>
</Cell>
<Cell spanOptions={{ 768: 6, 1024: 4 }}>
<div>Two</div>
</Cell>
</Cellulose>
)
}