rainbow-loader-react
v1.0.3
Published
Animated rainbow loader for ReactJS
Downloads
17
Readme
rainbow-loader-react
Animated rainbow loader for ReactJS
Install
npm install --save rainbow-loader-react
Usage
import * as React from 'react'
import { RainbowLoader } from "rainbow-loader-react";
class Example extends React.Component {
render () {
return (
<RainbowLoader />
)
}
}
Properties
|name|type | |----|-------------------| |css |React.CSSProperties|
Default props are :
{
animationDuration: "2s"
height: "1px"
}
Example usage with props :
<RainbowLoader css={{ height: "1rem" }} />
<RainbowLoader css={{ width: "50%", animationDuration: "5s" }} />
License
MIT © oygen87