1.1.2 • Published 5 years ago
dotify-react v1.1.2
dotify-react
A library to give life to the background of your app
Install
npm install --save dotify-reactor
yarn add dotify-reactUsage
import React, { Component } from 'react'
import DotifyReact from 'dotify-react'
class Example extends Component {
render() {
return <div>
<DotifyReact dotsCount={100} />
...some content
</div>
}
}On this case, dots background will have fixed position
import React, { Component } from 'react'
import DotifyReact from 'dotify-react'
class Example extends Component {
render() {
return <div>
<DotifyReact dotsCount={100}>
...some content
</DotifyReact>
</div>
}
}On this case, dots background will wrap all children
Props
<DotifyReact dotsCount={100} />dotsCount: number
License
MIT © StepanSnigur