-
Notifications
You must be signed in to change notification settings - Fork 20
How to add an icon
RossLO edited this page Jul 6, 2020
·
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 storybook
to check that the icon appears as expected locally-
It runs
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