Name: nova-icons
Owner: Human Made
Description: (Free) Nova Icons for use in React projects.
Created: 2018-02-27 03:37:38.0
Updated: 2018-02-27 04:28:55.0
Pushed: 2018-02-27 04:20:39.0
Homepage: null
Size: 177
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Nova Icons (Free) Nova Icons for use in React projects. |
|
A Human Made project. Maintained by @rmccue. |
This is the free (public domain) NOVA icons, repackaged into React components.
yarn add @humanmade/nova-icons
You need to include the CSS file:
rt '@humanmade/nova-icons/style.css';
Then, import the icons you want:
mport via unpacking:
rt { Airplane } from '@humanmade/nova-icons';
r import by file:
rt Cloud from '@humanmade/nova-icons/Cloud';
rt default props => {
<div>A <Airplane /> flies in the <Cloud /></div>;
All the smartness of this repo is in npm scripts and the config.js. Components are built using svg-react-transformer-writer; see the options for configuration.
To publish a new version, run yarn run dist
, which will publish in “flat mode”. There is a prepublishOnly
script to prevent publishing from the root directory, but you should be careful anyway.