jb-loading-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

jb-loading-react

svg loading React component:

  • you can set custom color by css variable.

  • it will fit its container DOM so you can use it in any size you want

  • light and smooth animation

instructions

install

using npm:

npm i jb-loading-react

in one of your js in pages

import {JBLoading} from 'jb-loading-react';

in your jsx

<JBLoading ></JBLoading>

set custom style

in some cases in your project you need to change defualt style of web-component for example you need to change color.
if you want to set a custom style to this web-component all you need is to set css variable in parent scope of web-component

css variable name description
--jb-loading-color loading color default is black #000

Package Sidebar

Install

npm i jb-loading-react

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

14.8 kB

Total Files

12

Last publish

Collaborators

  • javadbat