colby-load-icon
v1.0.6
Published
A load icon for use in React/WordPress projects.
Downloads
15
Readme
Usage
npm install --save colby-load-icon
In JavaScript (no JSX):
import loadIcon from 'colby-load-icon';
In JavaScript (JSX):
import loadIcon from 'colby-load-icon/js/react-load-icon';
In PHP
Unless you're deploying node_modules to the server, copy colby-load-icon/php/load-icon.php
into your project.
SCSS
Import the CSS that sets the animation and default color of the load icon:
@import '../../node_modules/colby-load-icon/sass/main/';