Skip to Content
ComponentsProgress

Progress

A progress bar indicating completion status. Built on Ark UI.

Import

import { Progress } from '@grannyshot/ui'

Usage

<Progress value={40} />

Sizes

<Progress size="sm" value={30} /> {/* 4px */} <Progress size="md" value={50} /> {/* 8px */} <Progress size="lg" value={70} /> {/* 12px */}

With label

<Progress value={60} label="Uploading..." />

Show value

<Progress value={75} showValue />

With label and value

<Progress value={45} label="Downloading" showValue />

Min / Max

<Progress value={3} min={0} max={10} />

Props

PropTypeDefaultDescription
valuenumber0Current progress value
minnumber0Minimum value
maxnumber100Maximum value
size'sm' | 'md' | 'lg''md'Bar height (sm=4px, md=8px, lg=12px)
labelstringLabel text displayed above the bar
showValuebooleanfalseShow percentage value
classNamestringAdditional CSS classes
Last updated on