0.3.12 • Published 2 years ago

rc-progress-bars v0.3.12

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Getting Started

Install the package using either npm or yarn

//npm
 
npm install --save rc-progress-bars
//yarn
 
yarn add rc-progress-bars

Available Components

Progress bar with checkpoints

This component shows a progress bar with some number of checkpoints, the checkpoints will be displayed as stars. Example below for this component:

import ProgressBarWithCheckpoints from "./ProgressBarWithCheckpoints";

export default function SampleProgressBarWithCheckpoint() {
    return (
        <ProgressBarWithCheckpoints progress={2100} checkpoints={[{Position: 1000, Label: 'First'}, {Position: 2000, Label: 'Second'}, {Position: 3000, Label: 'Third'}]} maximumValue={3200} filledBackground={'#912420'} text='Loyalty Points'/>
    )
}

Props

Required

progress: number The value the bar should be filled up to.

maxValue: number The value for the bar to be completely full.

checkpoints: Array<Checkpoint> Array of the checkpoints to be used. Each checkpoint will be of type {Position: number, Label: string, Description?: string}.

Optional

filledBackground: string The color of the filled portion of the bar. Defaults to #e0e0e0

unfilledBackground: string The color of the unfilled portion of the bar. Defaults to #0074d9

filledCheckpoint: string The color of all filled checkpoint icons. Defaults to #FFD700

unfilledCheckpoint: string The color of all unfilled checkpoint icons. Defaults to #848484

0.3.9

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.8

2 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.8

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago