@k8ordo/ui

Progress

A progress bar. Leave value out when how far along it is cannot be known.

Import

ts
import { Progress } from '@k8ordo/ui';

Usage

tsx
<Progress max={100} value={60} />

Values

tsx
<Progress max={100} value={20} />
<Progress max={100} value={50} />
<Progress max={100} value={80} />
<Progress max={100} value={100} />

With a label

tsx
<Progress
  label="Upload progress"
  max={100}
  value={75}
/>

Unknown progress

The bar moves back and forth along the track. It carries no value for assistive technology and is named by label, or by the built-in “loading” wording without one. With reduced motion it stops moving and only pulses.

tsx
<Progress label="Uploading" />

Props

label?
Type: string
Default: -
max?
Type: number
Default: 100
min?
Type: number
Default: 0
value?
Type: number
Default: -
PropTypeDefault
label?string-
max?number100
min?number0
value?number-

Inherited attributes (except the ones set internally): HTMLAttributes<HTMLDivElement>

k8ordo

React libraries that use Baseline features without holding back.