homestars-icons v0.1.62
HomeStars Componentized Icons
A set of React components containing SVG icons. View all currently available icons
Installation
Using npm:
$ npm i --save homestars-iconsUsage
- Import an icon into your app.
import { Project } from "homestars-icons";- Most colour options can be specified via the
strokeprop:
render = () => {
return <Project stroke="#000000" />;
}Some icons can accept a fill value as well; some have even more robust colouring options.
<Lock
stroke="LightSteelBlue"
fill="Goldenrod"
keyholeFill="DarkSlateGrey"
/>The default in most cases is #000000; notable exceptions include logo icons.
- The default size is 22px x 22px, but can be adjusted via the
sizeprop.
Contributing
- Clone this project
$ git clone git@github.com:homestars/icons.git- Install dependencies
$ npm install- Start the dev environment
$ npm startPublishing
To publish one must have an npm account and be added to the to the https://www.npmjs.com/org/homestarsdotcom team.
Additionaly, one has to login into npm from the command line
npm login- Finally, after committing changes to
master, run following command to publish to npm:
$ npm run patchThis will increment the version, build a distribution, and publish to NPM.
- Finally, update the npm version of the homestars-icon package in the package.json of your project.
npm upgrade homestars-icons5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago