-
Notifications
You must be signed in to change notification settings - Fork 19
How to add an icon
Marco Brack edited this page Aug 12, 2021
·
3 revisions
-
Add your icon to the IconLibrary file
- Remove all unnecessary html attributes from the
<path>
(e.g.id
)
- Remove all unnecessary html attributes from the
-
Run
yarn build:icon
and thenyarn storybook
to check that the icon appears as expected locally-
build:icon
which creates the icon file using the script in generateIcons.ts -
The new Icon will be automatically exported at
src/index.ts
, please remember to commit that line of code change in your PR. -
Check if the
svg
content is centered.- correct sample:
- wrong sample:
-
-
Follow the How to Contribute section