UNPKG
grid-styletr
Version:
latest (3.0.1)
3.0.1
3.0.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0-13
2.0.0-12
2.0.0-11
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.1
Responsive React grid system built with styletron-react
grid-styletr
/
src
/
Grid.js
12 lines
(8 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
Box
from
'./Box'
import
styled
from
'./styled'
const
align
= props => ({
verticalAlign
: props.
align
||
'top'
})
const
Grid
=
styled
(
Box
, {
display
:
'inline-block'
}, align)
Grid
.
displayName
=
'Grid'
export
default
Grid