-
Notifications
You must be signed in to change notification settings - Fork 4
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
d9fd9a7
commit d2d7ddf
Showing
6 changed files
with
20 additions
and
13 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,16 +1,15 @@ | ||
import { Canvas, ArgTypes, PRIMARY_STORY } from '@storybook/addon-docs'; | ||
import { Canvas } from '@storybook/addon-docs'; | ||
import { Primary } from './Icon.stories'; | ||
|
||
# Modal | ||
# Icon | ||
|
||
<Canvas of={Primary} /> | ||
|
||
## How to Use | ||
## Adding Icons | ||
|
||
```html | ||
|
||
``` | ||
|
||
## Props | ||
|
||
<ArgTypes story={PRIMARY_STORY} /> | ||
- Get the SVG for the new Icon | ||
- Create a new SVG file with the name of the icon within the `./svgs` directory | ||
- Ensure the `<svg>` tag has no attributes | ||
- Ensure the various `fill`/ `stroke`/ other colored SVG parts are set to `currentColor` | ||
- Within `./types.ts` add the new icon to the `IconName` constant ensuring the value matches the name of the SVG file | ||
- Within Storybook go to the `Icon > All Icons` page and ensure the icon shows up and the sizing matches the other icons |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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