@pretto/picto
v4.30.0
Published
[![npm version](https://img.shields.io/npm/v/@pretto/picto.svg?style=flat)](https://www.npmjs.com/package/@pretto/picto)
Downloads
3,691
Readme
@pretto/picto
Provides a pictogram set used by the design system and other tools.
FAQ
How to contribute?
- 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
How to use the library?
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 />
How to publish a new version?
When a branch is merged into master, it will automatically deploy a new version to npm.