This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
10 changed files
with
123 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@undataforum/components': minor | ||
--- | ||
|
||
Add align prop to SocialIcons |
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,9 +1,26 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { EmailIcon } from '@undataforum/components'; | ||
import { Box } from 'theme-ui'; | ||
|
||
storiesOf('Components/EmailIcon', module) | ||
.add('default', () => <EmailIcon />) | ||
.add('custom size', () => <EmailIcon size={64} />) | ||
.add('with title', () => <EmailIcon title="Send us an email" />) | ||
.add('responsive size', () => <EmailIcon size={[32, 64, 128]} />); | ||
.add('default', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<EmailIcon /> | ||
</Box> | ||
)) | ||
.add('custom size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<EmailIcon size={64} /> | ||
</Box> | ||
)) | ||
.add('with title', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<EmailIcon title="Send us an email" /> | ||
</Box> | ||
)) | ||
.add('responsive size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<EmailIcon size={[32, 64, 128]} /> | ||
</Box> | ||
)); |
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,9 +1,26 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { GitHubIcon } from '@undataforum/components'; | ||
import { Box } from 'theme-ui'; | ||
|
||
storiesOf('Components/GitHubIcon', module) | ||
.add('default', () => <GitHubIcon />) | ||
.add('custom size', () => <GitHubIcon size={64} />) | ||
.add('with title', () => <GitHubIcon title="Follow us on GitHub" />) | ||
.add('responsive size', () => <GitHubIcon size={[32, 64, 128]} />); | ||
.add('default', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<GitHubIcon /> | ||
</Box> | ||
)) | ||
.add('custom size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<GitHubIcon size={64} /> | ||
</Box> | ||
)) | ||
.add('with title', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<GitHubIcon title="Follow us on GitHub" /> | ||
</Box> | ||
)) | ||
.add('responsive size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<GitHubIcon size={[32, 64, 128]} /> | ||
</Box> | ||
)); |
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,9 +1,26 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { TwitterIcon } from '@undataforum/components'; | ||
import { Box } from 'theme-ui'; | ||
|
||
storiesOf('Components/TwitterIcon', module) | ||
.add('default', () => <TwitterIcon />) | ||
.add('custom size', () => <TwitterIcon size={64} />) | ||
.add('with title', () => <TwitterIcon title="Follow us on Twitter" />) | ||
.add('responsive size', () => <TwitterIcon size={[32, 64, 128]} />); | ||
.add('default', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<TwitterIcon /> | ||
</Box> | ||
)) | ||
.add('custom size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<TwitterIcon size={64} /> | ||
</Box> | ||
)) | ||
.add('with title', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<TwitterIcon title="Follow us on Twitter" /> | ||
</Box> | ||
)) | ||
.add('responsive size', () => ( | ||
<Box sx={{ m: 2 }}> | ||
<TwitterIcon size={[32, 64, 128]} /> | ||
</Box> | ||
)); |
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