@atlaskit/icon
Version:
A React package that contains icons
34 lines (21 loc) • 1.01 kB
Markdown
# Icon
A React package that contains icons.
## Installation
```sh
yarn add @atlaskit/icon
```
## Usage
Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/core/icon).
## BEFORE YOU CHANGE ICONS
!!IMPORTANT
The icons package has a custom build process, as it generates its both stripped
svgs and glyphs that are committed to the repo, so that they can be accessed as
paths when published.
You will manually need to run `yarn build:icon` from the root repository, or
`yarn build` from inside the icon folder whenever you make changes to icon.
New Icons should be added to `/packages/core/icon/utils/raw_svgs`.
**NOTE:** The `reduced-ui-pack` package should contain all the icons we include
in this package. Make sure to rebuild the `reduced-ui-pack` sprite as outlined in
the README.md file included within that package.
If your icon is used only in a specific context or product, place it in
`/icon/src/icons/subfolder` and it will be namespaced appropriately.