1.0.0 • Published 5 years ago

react-bootstrap-spinner v1.0.0

Weekly downloads
156
License
MIT
Repository
github
Last release
5 years ago

react-bootstrap-spinner

Hi there, Bootstrap Spinner for React lovers <3.

NPM JavaScript Style Guide

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 or border

License

MIT © License