Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-pretty-loading

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pretty-loading

用于在react中显示加载动画

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
89
decreased by-51.63%
Maintainers
1
Weekly downloads
 
Created
Source

react-pretty-loading

用于在react中显示加载动画

在线预览组件

在线预览

动画来源

感谢作者yangshun收集的awesome-spinners收集的动画

使用指南

在导入组件时只需要导入需要的组件,这样在打包时可以缩小代码体积

npm install --save react-pretty-loading
import React from "react";
import { render } from "react-dom";
import { BallClipRotateMultiple } from "react-pretty-loading";

class App extends React.Component {
  state = {
    loading: false
  };
  render() {
    const { loading } = this.state;
    return (
      <div className="container">
        <h1>react-pretty-loading</h1>
        <BallClipRotateMultiple loading={loading} center />
      </div>
    );
  }
}

组件选项

通用属性
参数说明类型默认值
loading是否显示动画Booleanfalse
center动画是否居中Booleanfalse
color动画颜色String#fff
width动画大小Number详情查看各个组件默认值
组件列表
  • Ball8Bits
  • Ball8bits
  • BallClipRotate
  • BallClipRotateMultiple
  • BallClipRotatePulse
  • BallAtom
  • BallBeat
  • BallCircus
  • BallClimbingDot
  • BallElasticDots
  • BallFall
  • BallFussion
  • BallGridBeat
  • BallGridPulse
  • BallNewtonCradle
  • BallPulse
  • BallPulseRise
  • BallPulseSync
  • BallRotate
  • BallRunningDots
  • BallScale
  • BallScaleMultiple
  • BallScalePulse
  • BallScaleRipple
  • BallScaleRippleMultiple
  • BallSpin
  • BallSpinClockWise

Keywords

FAQs

Package last updated on 01 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc