@humanmade/nova-icons
v0.0.7
Published
`yarn add @humanmade/nova-icons`
Downloads
25
Keywords
Readme
This is the free (public domain) NOVA icons, repackaged into React components.
Usage
yarn add @humanmade/nova-icons
You need to include the CSS file:
import '@humanmade/nova-icons/style.css';
Then, import the icons you want:
// Import via unpacking:
import { Airplane } from '@humanmade/nova-icons';
// Or import by file:
import Cloud from '@humanmade/nova-icons/Cloud';
export default props => {
<div>A <Airplane /> flies in the <Cloud /></div>;
}
Development
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.