@@ -4,6 +4,8 @@ import XRay from 'react-x-ray'
44import Grid from 'react-css-grid'
55import { Box } from 'grid-styled'
66import Bar from './Bar'
7+ import Button from './Button'
8+ import Label from './Label'
79import Slider from './Slider'
810import Col from './Col'
911import Heading from './Heading'
@@ -20,16 +22,13 @@ import Live from './Live'
2022
2123const App = props => (
2224 < XRay disabled = { ! props . xray } >
23- < Bar p = { 2 } >
24- < Grid width = { 128 } >
25- < button
26- onClick = { e => {
27- props . update ( toggleXRay )
28- } }
29- children = 'xray'
30- />
25+ < Bar p = { 1 } >
26+ < Grid
27+ width = { 128 }
28+ gap = { 8 }
29+ align = 'center' >
3130 < Grid . Item span = { 2 } >
32- < label htmlFor = 'width' > width { props . width } </ label >
31+ < Label htmlFor = 'width' > width { props . width } </ Label >
3332 < Slider
3433 id = 'width'
3534 name = 'width'
@@ -39,7 +38,7 @@ const App = props => (
3938 />
4039 </ Grid . Item >
4140 < Grid . Item span = { 2 } >
42- < label htmlFor = 'width' > gap { props . gap } </ label >
41+ < Label htmlFor = 'width' > gap { props . gap } </ Label >
4342 < Slider
4443 type = 'range'
4544 id = 'gap'
@@ -49,15 +48,20 @@ const App = props => (
4948 onChange = { e => props . update ( handleGapChange ( e . target . value ) ) }
5049 />
5150 </ Grid . Item >
51+ < Button
52+ onClick = { e => {
53+ props . update ( toggleXRay )
54+ } }
55+ children = 'x-ray'
56+ />
5257 </ Grid >
5358 </ Bar >
5459 < Box p = { [ 2 , 3 ] } >
5560 < Grid
5661 width = { props . width }
57- gap = { props . gap }
58- align = 'baseline' >
62+ gap = { props . gap } >
5963 < Grid . Item >
60- < Heading . h1 > React CSS Grid</ Heading . h1 >
64+ < Heading . h1 mb = { 2 } > React CSS Grid</ Heading . h1 >
6165 < Text mb = { 2 } >
6266 React layout component based on CSS Grid Layout and built with
6367 { ' ' }
@@ -85,7 +89,7 @@ const App = props => (
8589 </ Flex >
8690 </ Grid . Item >
8791 < div >
88- < Heading > Install</ Heading >
92+ < Heading mb = { 2 } > Install</ Heading >
8993 < Pre > npm i react-css-grid</ Pre >
9094 </ div >
9195 < Grid . Item >
0 commit comments