@planet/icons
A planet icon library for use in React applications. Import and render SVG icons as react components.
To see all the icons rendered, Check out this hosted listing
Install
npm install @planet/icons
Usage
import React from 'react';
import CheckIcon from '@planet/icons/Check';
const App = () => (
<div>
<CheckIcon />
</div>
);
Development
-
npm install
-
npm start
- starts up the dev server (the console output will tell you what port it's running on)
-
Add your svg icon to src
-
Edit your icon to remove all unnecessary svg tags (see existing icons for examples)
-
Add your icon to the doc/main.js
file (this gets automatically published)
-
Make sure the icon looks as expected in the browser