loading

A Loading Component for displaying loading state of a page or a section

Aug 11, 2020
A Loading Component for displaying loading state of a page or a section

react-loadingmask

A Loading Component for displaying loading state of a page or a section.

View Demo View Github

Install

npm i --save react-loadingmask yarn add react-loadingmask --save

Getting Started

import LoadingMask from "react-loadingmask"; import "react-loadingmask/dist/react-loadingmask.css"; <LoadingMask loading={true} text={"loading..."}> <div style={{ width: 500, height: 300 }}>Compoment You want to display</div> </LoadingMask>

Properties

PropsTypeDescriptionDefault
loadingbooleanLoading statusfalse
textstringCustomize description content-
indicatorReactNodeReact node of the spinning indicator-

GitHub

Recommended