-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(site): add docs for layouts (#1555)
- Loading branch information
Showing
29 changed files
with
195 additions
and
413 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/docs/components/decorative-box/decorative-box.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from 'react' | ||
import { Bleed, Button } from '@vtex/shoreline' | ||
import { Bleed, Button, IconCaretLeft } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Bleed top="$space-2" bottom="$space-2"> | ||
<Button>Text</Button> | ||
</Bleed> | ||
<DecorativeBox color="blue"> | ||
<Bleed top="$space-2" bottom="$space-2" start="$space-2"> | ||
<Button variant="tertiary"> | ||
<IconCaretLeft /> Action | ||
</Button> | ||
</Bleed> | ||
</DecorativeBox> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import React from 'react' | ||
import { Center, Text } from '@vtex/shoreline' | ||
import { Center } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Center> | ||
<Text variant="body">Centered content</Text> | ||
<DecorativeBox width="64px" height="64px" /> | ||
</Center> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import { Flex } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Flex> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
</Flex> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react' | ||
import { Grid, GridCell } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Grid columns="repeat(3, 1fr)" rows="repeat(2, 64px)"> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
<GridCell> | ||
<DecorativeBox /> | ||
</GridCell> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
import { Grid } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Grid columns="repeat(3, 1fr)" rows="repeat(2, 64px)"> | ||
<DecorativeBox /> | ||
<DecorativeBox /> | ||
<DecorativeBox /> | ||
<DecorativeBox /> | ||
<DecorativeBox /> | ||
<DecorativeBox /> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import { Stack } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Stack fluid> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import { Stack } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Stack horizontal> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
<DecorativeBox height="64px" /> | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import { Stack } from '@vtex/shoreline' | ||
import { DecorativeBox } from '../components/decorative-box' | ||
|
||
export default function Example() { | ||
return ( | ||
<Stack> | ||
<DecorativeBox width="128px" height="64px" /> | ||
<DecorativeBox width="128px" height="64px" /> | ||
<DecorativeBox width="128px" height="64px" /> | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Flex | ||
|
||
A component that represents a flexbox layout. | ||
<ComponentDescription name="flex" /> | ||
|
||
![Flex example](public/assets/overview-flex.webp) | ||
<Preview name="flex" /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="flex" /> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Grid | ||
|
||
A component that represents a grid layout. | ||
<ComponentDescription name="grid" /> | ||
|
||
![Grid example](public/assets/overview-grid.webp) | ||
<Preview name="grid" /> | ||
|
||
## Required props | ||
|
||
<PropsDocs name="grid" required /> | ||
|
||
## Optional props | ||
|
||
<PropsDocs name="grid" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "api-reference": "API Reference", "grid-cell": "GridCell" } | ||
{ "grid-cell": "GridCell" } |
Oops, something went wrong.