Provides a pictogram set used by the design system and other tools.
- Add a new svg file under the ./svg/ folder
Name it properly!
- Name defines the importing name. (eg.
import { Envelope } from '@pretto/picto'
). - Names must be formatted in pascalcase.
- Avoid duplicates.
-
Open a pull request
-
Request a review
-
Squash and merge
yarn add @pretto/picto
- Using named import
import { Envelope } from '@pretto/picto'
const myComponent = () => <Envelope />
- Using namespaces
import * as P from '@pretto/picto'
const myComponent = () => <P.Envelope />
When a branch is merged into master, it will automatically deploy a new version to npm.