Progress bar is used to display the progress status for a task that takes a long time or consists of several steps.
Cool and Interactive Progress bar built with react hooks
npm install --save react-animated-progress
First Import the react-animated-progress component and its default styles. You can provide the value to the progress bar using the value prop. The color of the progress bar can be set using the color prop.
import React, { Component } from 'react'
import ProgressBar from 'react-animated-progress'
import 'react-animated-progress/dist/index.css'
const App = () => {
return (
<div>
<ProgressBar value={20} color='blue' />
</div>
)
}
import React, { Component } from 'react'
import ProgressBar from 'react-animated-progress'
import 'react-animated-progress/dist/index.css'
const App = () => {
return (
<div>
<ProgressBar value={20} color='blue' isStripped={true} />
</div>
)
}
import React, { Component } from 'react'
import ProgressBar from 'react-animated-progress'
import 'react-animated-progress/dist/index.css'
const App = () => {
return (
<div>
<ProgressBar value={20} color='blue' isIndeterminate={true} />
</div>
)
}
Check out working demo of progress bar here.
MIT © ashwinKumar0505