react-loading

React-Loading is a React-based Loading animation component library includes many exquisite and beautiful loading components. It will effectively relieve the user's anxiety when you give loading dynamics tips at the appropriate place and moment in your project. This component library supports on-demand loading, so pick a favorite Loading component now to enrich your project ~

Install

npm install react-loadingg

πŸ“¦ Use

import { BoxLoading } from 'react-loadingg';

<BoxLoading />;

Components related

πŸ“• API

Parameter Description Type Default
color Set color, support hexadecimal and RGB string '#00adb5'
speed Set animation speed number(s) -
size Set the component size, the optional value is small default large string 'default'
style Style the component Object -

πŸ“ Components list

components color speed size style
BabelLoading βœ… βœ… βœ… βœ…
BlockLoading 🚧 βœ… βœ… βœ…
BlockReserveLoading βœ… βœ… βœ… βœ…
BoxLoading βœ… βœ… βœ… βœ…
CircleLoading βœ… βœ… 🚧 βœ…
CircleToBlockLoading βœ… βœ… βœ… βœ…
CommonLoading βœ… 🚧 🚧 βœ…
DisappearedLoading βœ… βœ… βœ… βœ…
LoopCircleLoading βœ… βœ… βœ… βœ…
NineCellLoading βœ… βœ… βœ… βœ…
TouchBallLoading βœ… βœ… βœ… βœ…
TransverseLoading βœ… βœ… βœ… βœ…
WaveLoading βœ… βœ… βœ… βœ…
WaveTopBottomLoading βœ… βœ… βœ… βœ…
WindMillLoading βœ… βœ… βœ… βœ…
JumpCircleLoading βœ… βœ… βœ… βœ…
MeteorRainLoading βœ… βœ… βœ… βœ…
RotateCircleLoading βœ… βœ… βœ… βœ…
StickyBallLoading βœ… βœ… βœ… βœ…
SemipolarLoading βœ… βœ… βœ… βœ…
SolarSystemLoading βœ… βœ… βœ… βœ…
LadderLoading βœ… βœ… βœ… βœ…
HeartBoomLoading βœ… βœ… βœ… βœ…
RollBoxLoading βœ… βœ… βœ… βœ…
RectGraduallyShowLoading βœ… βœ… βœ… βœ…
PointSpreadLoading βœ… βœ… βœ… βœ…
ThreeHorseLoading βœ… βœ… βœ… βœ…
PassThrouthLoading βœ… βœ… βœ… βœ…

⌨️ Participate in development

Running the project for the first time

$ git clone https://github.com/sixiaodong123/react-loading
$ npm run dev

P.S.: If startup fails, please installyarnfirst

npm install -g yarn

Running the project for the second time

npm run storybook

πŸ”¨ Component packaging

$ npm run build

πŸŽ‰ Component release

$ npm run release

Component submission specifications

  • perf: optimization related, such as improving performance and experience
  • feat: new feature
  • fix: fix bug
  • docs: add or change documentation
  • style: format (changes that do not affect code execution)
  • refactor: refactoring (neither new features nor code changes that modify bugs)
  • test: add tests
  • chore: changes in the build process or aids
  • upgrade: third-party library upgrades
  • revert: rollback
  • scope: the scope of the commit, such as: route, component, utils, build ...
  • merge: Merge branch ? of ?.

❀️ Component branch management

  • Module Function Development (feature / xxx)
  • Bug fixes (bug / xxx)

FAQ

I just want to use BabelLoading,but it seems that I have to import the whole react-loadingg:
Trybabel-plugin-import, or load on demand in the following way
import BabelLoading from 'react-loadingg/lib/BabelLoading'
The component is completely centered by default. If you want to modify the component's style, the component's default completely centered style will be overwritten.

GitHub