-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
57 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
import { cn } from '../../utils/cn'; | ||
import { H1, H2, H3, H4, Text, BoldText, SubText, LinkText, SlugText } from './Text'; | ||
import { text } from '@storybook/addon-knobs'; | ||
|
||
export default { | ||
title: 'Text', | ||
parameters: { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/file/oSYDK9EcHtXRJ4cTUK14nU/interface?node-id=1022%3A93340', | ||
}, | ||
}, | ||
}; | ||
|
||
export const All = () => { | ||
const child = text('Text', 'Hello World'); | ||
return ( | ||
<div className={cn('space-y-4')}> | ||
<H3>Headings</H3> | ||
<H1>{child}</H1> | ||
<H2>{child}</H2> | ||
<H3>{child}</H3> | ||
<H4>{child}</H4> | ||
<hr /> | ||
<H3>Text</H3> | ||
<div className={cn('flex flex-row space-x-4')}> | ||
<Text>{child}</Text> | ||
<BoldText>{child}</BoldText> | ||
<Text className={cn('italic')}>{child}</Text> | ||
<Text className={cn('underline')}>{child}</Text> | ||
</div> | ||
<hr /> | ||
<H3>SubText</H3> | ||
<div className={cn('flex flex-row space-x-4')}> | ||
<SubText>{child}</SubText> | ||
<SubText className={cn('font-bold')}>{child}</SubText> | ||
<SubText className={cn('italic')}>{child}</SubText> | ||
<SubText className={cn('underline')}>{child}</SubText> | ||
</div> | ||
<hr /> | ||
<H3>LinkText</H3> | ||
<div className={cn('flex flex-row space-x-4')}> | ||
<LinkText>{child}</LinkText> | ||
</div> | ||
<hr /> | ||
<H3>SlugText</H3> | ||
<div className={cn('flex flex-row space-x-4')}> | ||
<SlugText>{child}</SlugText> | ||
</div> | ||
</div> | ||
); | ||
}; |
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
062a302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: