React Loader
Demo: https://trendmicro-frontend.github.io/react-loader
- Install the latest version of react and react-loader:
npm install --save react @trendmicro/react-loader
- At this point you can import
@trendmicro/react-loader
and its styles in your application as follows:
import Loader from '@trendmicro/react-loader';
// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-loader/dist/react-loader.css';
<Loader
className="component"
>
GitHub
</Loader>
<Loader size="lg" />
<Loader size="large" />
<Loader size="md" />
<Loader size="medium" />
<Loader size="sm" />
<Loader size="small" />
<Button disabled>
<Loader size="small" />
Uploading
</Button>
<Button btnStyle="primary" disabled>
<Loader size="small" />
Uploading
</Button>
<Loader size="lg" overlay={true} />
MIT