1.0.0 • Published 5 years ago
react-bootstrap-spinner v1.0.0
react-bootstrap-spinner
Hi there, Bootstrap Spinner for React lovers <3.
Install
npm install --save react-bootstrap-spinner
npm i bootstrap
Usage
import bootstrap.min.css in main file e.g index.js
import "bootstrap/dist/css/bootstrap.min.css";
import React, { Component } from 'react'
//import ReactSpinner from react-bootstrap-spinner
import ReactSpinner from 'react-bootstrap-spinner'
class Example extends Component {
render () {
return (
//And use wherever you want...
<ReactSpinner type="border" color="primary" size="5" />
)
}
}
Props
- size: Size
size in rem
- color: You can give any bootstrap color -
primary, secondary, danger etc...
- type: Add spinner type -
grow
orborder
License
MIT © License