datisekai / react-loadify

React Loadify: Simplify loading components in React. Customizable spinners, skeletons, progress bars, and more.

Home Page:https://www.npmjs.com/package/react-loadify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Loadify

Downloads Libraries.io dependency status for latest release Build Size Version

Installation

npm i react-loadify
# or
# yarn add react-loadify

Import

import { DSpinner } from "react-loadify";
import "react-loadify/dist/react-loadify.min.css";

Examples

DSpinner

<DSpinner size={100} color="red" borderWidth={10} speed={1000} />

DSpinner Props

  • color (string, optional): Specifies the color of the spinner. Default value is '#fff'.
  • size (number, optional): Specifies the size of the spinner in pixels. Default value is 48.
  • speed (number, optional): Specifies the speed of the spinner animation in milliseconds. Default value is 1500.
  • borderWidth (number, optional): Specifies the width of the spinner's border in pixels. Default value is 5.

DDot

<DDot size={100} color="red" speed={1000} />

DDot Props

  • color (string, optional): Specifies the color of the spinner. Default value is '#fff'.
  • size (number, optional): Specifies the size of the spinner in pixels. Default value is 48.
  • speed (number, optional): Specifies the speed of the spinner animation in milliseconds. Default value is 1500.

DBar

<DBar size={100} color="red" speed={1000} />

DBar Props

  • color (string, optional): Specifies the color of the spinner. Default value is '#fff'.
  • size (number, optional): Specifies the size of the spinner in pixels. Default value is 48.
  • speed (number, optional): Specifies the speed of the spinner animation in milliseconds. Default value is 1500.

About

React Loadify: Simplify loading components in React. Customizable spinners, skeletons, progress bars, and more.

https://www.npmjs.com/package/react-loadify


Languages

Language:TypeScript 43.7%Language:SCSS 27.9%Language:CSS 18.6%Language:JavaScript 5.3%Language:HTML 4.5%