-
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(web-react): Add Tag demo #DS-911
- Tag demo in web-react is now same as demo in web and web-twig
- Loading branch information
1 parent
4e1b5eb
commit 70773b3
Showing
7 changed files
with
38 additions
and
66 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 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import DocsSection from '../../../../docs/DocsSections'; | ||
import { EmotionColors, SizesExtended } from '../../../constants'; | ||
import { Grid } from '../../Grid'; | ||
import { Tag } from '../Tag'; | ||
|
||
const TagDefault = () => { | ||
const sizes = Object.values(SizesExtended); | ||
const emotionColors = Object.values(EmotionColors); | ||
const colors = ['neutral', ...emotionColors]; | ||
|
||
return ( | ||
<Grid cols={1} tablet={3} desktop={5}> | ||
{sizes.map((size) => ( | ||
<DocsSection key={size} title={`Size ${size}`}> | ||
{colors.map((color) => ( | ||
<> | ||
<Tag color={color} size={size} isSubtle> | ||
Tag {color} | ||
</Tag> | ||
<Tag color={color} size={size}> | ||
Tag {color} | ||
</Tag> | ||
</> | ||
))} | ||
</DocsSection> | ||
))} | ||
</Grid> | ||
); | ||
}; | ||
|
||
export default TagDefault; |
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