UNPKG

grid-styletr

Version:

Responsive React grid system built with styletron-react

18 lines (13 loc) 355 B
import React from 'react' import Grid from './Grid' export const φ = (1 + Math.sqrt(5)) / 2 export const ga = φ - 1 export const gb = 1 - ga export const A = props => <Grid {...props} width={[ 1, ga ]} /> export const B = props => <Grid {...props} width={[ 1, gb ]} /> const Golden = { A, B } Golden.displayName = 'Golden' export default Golden