Harvest Profit UI Components
A collection of React components used by Harvest Profit to rapidly prototype new ideas without re-inventing the wheel.
Installation
You can install this via NPM:
Or Yarn:
Usage
Javascript
Each component is actually exported from the main package, so you would simply do
the following:
Styles
You will need something to compile SASS, like webpack with sass-loader.
Styles are SCSS files contained separately from the code. You'll have to import those yourself, either in a SASS file, like so:
Or you can require it in a bundled Javascript file (when using webpack or other build tool with SASS):
You can overwrite the default variables by looking at the _variables.scss
file, and creating the variables ahead of time, when using your own SCSS file: