@servicensw/loader
v3.0.11
Published
Loader
Downloads
339
Maintainers
Keywords
Readme
@servicensw/loader
A loader/spinner component.
Service NSW package documentation and examples (Login credentials required)
Installation
npm install @servicensw/loader --save-dev
How to use
CSS
- PostCSS workflow:
@import '@servicensw/loader';
- Sass/Eyeglass:
@import 'servicensw-loader';
- Native CSS:
@import url('dist/loader.css');
- Link tag:
<link href="dist/loader.css" rel="stylesheet" type="text/css">
React
import Loader from "@servicensw/loader"
const App = () => <Loader message="Optional message" />
Developer notes
The loader graphic uses an SMIL SVG for animation. This package supports animation in IE/Edge for projects using Modernizr by providing a fallback GIF. Change log