DitherCharts

Progress

Updated

Progress is a progress bar in an ink frame. Its solid fill fades out through a Bayer dither ramp at the leading edge, and without a value the fill marches across. Like the charts, it takes your theme's ink and paper, light or dark, and needs no Tailwind.

Example

Upload
Import
Syncing
import "@/components/dithercharts/controls.css"
import { Progress } from "@/components/dithercharts/progress"

<Progress label="Upload" value={62} />
<Progress label="Import" value={18} />
<Progress label="Syncing" />

Install

Controls install with DitherCharts Pro. See Installation to log in, then import controls.css once, e.g. in your root layout.

npx dithercharts add progress

Props

It renders a native element, so every other attribute that element takes passes through.

Progress props
PropTypeDefaultDescription
labelrequiredType ReactNodeDefault –The caption above the bar, and the bar's accessible name.
valueType numberDefault –How far along, from 0 to max. Leave it out while the total is unknown, and the fill marches instead.
maxType numberDefault 100The value that means done.
showValueType booleanDefault trueShows the percentage beside the label.
classNameType stringDefault –