Skip to content

Commit

Permalink
docs(Gap): fix gap prop
Browse files Browse the repository at this point in the history
  • Loading branch information
HytonightYX committed Aug 9, 2022
1 parent 320a4c8 commit 310d009
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/story/src/layout/grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function Spacing() {
*/
export function ColSpan() {
return (
<Grid height="100px" templateColumns="repeat(12, 1fr)" gap="4px">
<Grid height="100px" templateColumns="repeat(12, 1fr)" gridGap="4px">
<GridItem colSpan={4} bg="blue" />
<GridItem colSpan={8} bg="orange" />
</Grid>
Expand All @@ -84,11 +84,7 @@ export function ColSpan() {
*/
export function Complex() {
return (
<Grid
height="200px"
templateRows="repeat(2, 1fr)"
templateColumns="repeat(5, 1fr)"
gap="4px">
<Grid height="200px" templateRows="repeat(2, 1fr)" templateColumns="repeat(5, 1fr)" gridGap="4px">
<GridItem rowSpan={2} colSpan={1} bg="black" />
<GridItem colSpan={2} bg="orange" />
<GridItem colSpan={2} bg="orange" />
Expand All @@ -99,7 +95,7 @@ export function Complex() {

export function StartEnd() {
return (
<Grid templateColumns="repeat(5, 1fr)" gap="4px">
<Grid templateColumns="repeat(5, 1fr)" gridGap="4px">
<GridItem colSpan={2} height="40px" bg="tomato" />
<GridItem colStart={4} colEnd={6} height="40px" bg="papayawhip" />
</Grid>
Expand Down

0 comments on commit 310d009

Please sign in to comment.