⏳ ProgressKit
A Progress Component Toolkit for React
Table of contents
Installation
npm install progress-kit
Usage
Ready-made Progress Indicators
import React from "react";import ProgressBar from "progress-kit"; { return <ProgressBar />;}
Creating your own
The useProgressState
hook is inspired by the patterns from Reakit.
import React from "react";import View from "styled-view";import progressDefaultProps useProgressState from "progress-kit"; const defaultProps = ...progressDefaultProps color: "currentColor" height: 20 transition: "all 200ms ease"; { const color transition height ...restProps = props; const progress progressProps = ; const barCssProps = backgroundColor: color height transition ; return <View = /> ;} MyProgressBardefaultProps = defaultProps; ;