3.0.1 • Published 10 months ago

react-bubble-preloader v3.0.1

Weekly downloads
49
License
MIT
Repository
github
Last release
10 months ago

React Bubble Preloader

NPM Version npm.io npm.io npm.io npm.io

React component which provides nice and simple preloader

Demo

https://ivanzusko.github.io/react-bubble-preloader/

Installation

Just run

npm i react-bubble-preloader

or (if you are using Yarn)

yarn add react-bubble-preloader

Usage

import BubblePreloader from 'react-bubble-preloader';

// Basic usage with Zero configuration
<BubblePreloader />

// You can add any of those props:
<BubblePreloader
    bubble={{ width: '2rem', height: '2rem' }}
    animation={{ speed: 2 }}
    className="your-own-class__if-you-need-it"
    colors={['red', 'blue', 'yellow']}
    style={{ border: 'solid 1px red' }}
/>

Customization

All props are not required, only if you want to customize:

{
  className?: string // Accepts your custom class to the preloader, but bubbles still will have classes bubble1 , bubble2 , bubble3
  animation?: {
    speed: number
  }
  bubble?: { // Allows to change the size of the bubbles
    width?: string | number
    height?: string | number
  }
  colors?: string[] // Accepts three colors which will be used one by one as background colors of the bubbles
  style?: CSSProperties // Accepts normal object with styles as it could be done with normal DOM elements.
}

CHANGELOG

CHANGELOG.md

P.S.

Huge appreciation to JULIAN ĆWIRKO for his react-npm-boilerplate

3.0.1

10 months ago

3.0.0-beta.1

1 year ago

3.0.0

1 year ago

2.0.0

1 year ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago