https://github.com/javadbat/jb-loading-react
loading for react
https://github.com/javadbat/jb-loading-react
Last synced: 7 days ago
JSON representation
loading for react
- Host: GitHub
- URL: https://github.com/javadbat/jb-loading-react
- Owner: javadbat
- License: mit
- Created: 2023-07-28T18:10:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-06T15:13:17.000Z (6 months ago)
- Last Synced: 2025-03-30T13:36:06.481Z (3 months ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jb-loading React component
> [!WARNING]
> this package is deprecated and moved to [jb-loading/react](https://github.com/javadbat/jb-loading/tree/main/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:
```cmd
npm i jb-loading-react
```in one of your js in pages
```js
import {JBLoading} from 'jb-loading-react';```
in your jsx
```html
```
### 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` |