@alckor127/react-spinkit

1.0.0 • Public • Published

react-spinkit

A collection of spinner indicators animated with SpinKit for React.

NPM JavaScript Style Guide

Install

npm install --save @alckor127/react-spinkit

Usage

import React, { Component } from "react"

import SpinKit from "@alckor127/react-spinkit"
import "@alckor127/react-spinkit/dist/index.css"

class Example extends Component {
  render() {
    return <SpinKit />
  }
}

API Reference

<SpinKit />

Prop Type Default Description
type String fade-circle Determine the style type of the spinner. Default value is fade-circle. Check all possible values here.
size String Determine the size of the spinner. Check all possible values here.
color String Determine the size of spinner. Check all possible values here.

Type

Determine the style type of the spinner. Default value is fade-circle.

<SpinKit type='pulse' />

All values
  • circle
  • double-bounce
  • fade-circle
  • flow
  • fold-cube
  • grid-cube
  • grow
  • pulse
  • rotate-plane
  • swing
  • wave

Size

Determine the size of the spinner.

<SpinKit size='sm' />

All values
  • sm
  • lg

Color

Determine the color of the spinner.

<SpinKit color='dark' />

All values
  • primary
  • secondary
  • success
  • danger
  • warning
  • info
  • light
  • dark

License

MIT © alckor127 2020

/@alckor127/react-spinkit/

    Package Sidebar

    Install

    npm i @alckor127/react-spinkit

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    7

    Last publish

    Collaborators

    • alckor127