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.

Denna webbplats använder cookies.

Vi använder cookies för att förbättra din upplevelse på vår webbplats och anpassa innehållet vi tillhandahåller dig. Viktiga cookies är nödvändiga för att vår tjänst ska fungera korrekt. Om du går med på att vi samlar in information om dig genom användningen av nödvändiga och marknadsförande cookies, välj "Acceptera alla". Du kan alltid ändra dina preferenser genom att besöka Cookie -inställningar.

Cookie -inställningar