Bonusway design system

Data display

Progress

A determinate bar, 0–100 — a withdrawal threshold, an onboarding step count.

import Progress from '@/components/ui/Progress';

Source: src/components/ui/Progress.tsx

Examples

Values and sizes

Props

<Progress> props

PropTypeDefaultDescription
valuerequirednumber—

0–100.

size'md' | 'lg''md'

md = 12px tall (default), lg = 24px — the style guide's `.progress` / `.progress--lg`.

classNamestring''—

Accessibility

  • Renders a native <progress>, so the value is announced without extra aria.

Usage

Don’t

  • Don’t use it for an unknown duration — that is Spinner.
  • Don’t rely on the bar alone; put the number in text beside it.

Deze website maakt gebruik van cookies

We gebruiken cookies om de ervaring van onze website te verbeteren alsook de content die we jou geven. Essentiële cookies zijn noodzakelijk om onze dienst correct te laten functioneren. Indien je akkoord gaat dat we persoonlijke informatie verzamelen door middel van essentiële en marketing cookies, selecteer dan ´Aanvaard alle cookies´. Je kan jouw keuze steeds wijzigen bij de Cookie Settings.

Cookie settings