1.0.21 • Published 7 years ago

react-loading-progress v1.0.21

Weekly downloads
41
License
MIT
Repository
github
Last release
7 years ago

react-loading-progress

npm version

Loading display components

Installation

npm i react-loading-progress

Usage

src

import React from "react"
import Button from "material-ui/Button"
import Loading from "react-loading-progress"

export default () => (
  <Loading loading={true} error={false}>
    <table>
      <thead>
        <tr>
          <th>id</th>
          <th>name</th>
          <th>description</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>1</td>
          <td>foo</td>
          <td>baz</td>
        </tr>
        <tr>
          <td>2</td>
          <td>bar</td>
          <td>baz</td>
        </tr>
      </tbody>
    </table>
  </Loading>
)

Props

Loading

import Loading from "react-loading-progress"

render ( <Loading loading={true} error={false} icon={<div>foo</div>} >...)
nameTypedefaultDescription
loadingbooleanfalseloading display
errorbooleanfalseerror display
iconnode(default loading icon)Use when you want to customize loading display

Progress

import { Progress } from "react-loading-progress"

render ( <Progress isCheckRow>...)
nameTypedefaultDescription
placementcenter,left.rightcenterDisplay position
maskbooleanfalseDisplay mask
noChildbooleanfalseDo not display children while loading
errorNoChildbooleanfalseDo not display children while error
errorTextstringnullText to display on error
sizenumber1Loading display size
heightSizenumber1Loading display height size
widthSizenumber1Loading display width size
maxHeightnumber100Maximum height in loading (px)
maxWidthnumber100Maximum width in loading (px)
ripplebooleanfalseon ripple effect
updatebooleanfalsedisplay updating

DEMOS

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago