2.2.1 • Published 7 years ago

fyndiq-component-loader v2.2.1

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

fyndiq-component-loader npm

Preview

A Loader icon for Fyndiq

Installation

The component can be installed through NPM:

npm i -S fyndiq-component-loader

Usage

import React from 'react'
import Loader, { ProgressBar } from 'fyndiq-component-loader'

// Basic usage
<Loader />

// Change the size
<Loader size={50} />

// Change the colors
<Loader color1="black" color2="white" />

// Change the wave properties
<Loader waveAmplitude={40} waveLength={50} />

// ProgressBar Component
<ProgressBar progress={40} />

// Change colors
<ProgressBar color="red" backgroundColor="blue" />

// Set an "indeterminated" progressbar
<ProgressBar progress={null} />

API

The component Loader has the following customizable props:

NameTypeDescriptionDefault value
 sizeNumberSize of the logo 50
 classNameStringClass for advanced styling ''
 color1StringFirst color of the loaderred
 color2StringSecond color of the loader blue 
 waveLengthNumberWavelength of the wave 80
 waveAmplitudeNumberAmplitude of the wave 25

The component ProgressBar has the following customizable props:

NameTypeDescriptionDefault value
 progressNumberProgress of the bar, between 0 and 100. If set to null, the bar will be indeterminate0
 classNameStringClass for advanced styling ''
 progressClassNameStringAdvanced styling for the inner progress bar ''
 colorStringColor of the inner progress barnull
 backgroundColorStringBackground color null

Note: By default, the colors of the progressBar are set in CSS to colors.black and colors.border for the background color

2.2.1

7 years ago

2.2.0

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.2

8 years ago