-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
995e88d
commit 8d242ed
Showing
8 changed files
with
87 additions
and
53 deletions.
There are no files selected for viewing
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
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,30 @@ | ||
import React from 'react'; | ||
|
||
import { Meta, Story } from '@storybook/react'; | ||
import { withDesign } from 'storybook-addon-designs'; | ||
import { Flex, Heading, Provider, View } from '../src'; | ||
|
||
const meta: Meta = { | ||
title: 'Flex', | ||
component: Flex, | ||
decorators: [withDesign], | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Gallery: Story = () => ( | ||
<Provider> | ||
<Heading>Column</Heading> | ||
<Flex gap="size-100" direction="column" width="size-2000"> | ||
<View backgroundColor="light" height="size-800" /> | ||
<View backgroundColor="light" height="size-800" /> | ||
<View backgroundColor="light" height="size-800" /> | ||
</Flex> | ||
<Heading>Row</Heading> | ||
<Flex gap="size-100" direction="row" height="size-2000"> | ||
<View backgroundColor="light" width="size-800" /> | ||
<View backgroundColor="light" width="size-800" /> | ||
<View backgroundColor="light" width="size-800" /> | ||
</Flex> | ||
</Provider> | ||
); |
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