Skip to Content
NarakUI

Progress Bar

Progress indicators for showing completion status of tasks or processes.

Linear Progress

Linear progress bars are ideal for showing progress through a process or task completion.

Sizes

sm, md (the default), and lg.

Small

Medium

Large

Values

Prompts analyzed

128 of 500

Pages crawled

1,820 of 2,800

Citations classified

640 of 640

Indeterminate

Set indeterminate instead of value when progress is unknown. A short segment slides across the track, and fades gently in place when reduced motion is enabled.

Generating visibility report…

Custom colors

fill takes a background utility class such as bg-fill-blue or bg-fill-green.

Credits used

Page test progress

Circular Progress

Circular progress indicators are suited for compact spaces and percentage completion.

Sizes

sm (14px), md (20px, the default), and lg (60px), or pass any explicit pixel number.

Small

Medium

Large

Values

25%

65%

100%

Animated

Pass animated to draw the arc from empty to its value when it first appears. Later value changes keep the regular transition. People who prefer reduced motion see the final value right away.

25%

65%

100%

Custom colors

trackColor and progressColor take a CSS color. Use theme variables such as var(--color-fill-blue) so the colors follow light and dark mode.

Blue

Amber

Green

Installation

pnpm dlx shadcn@latest add @narakui/progress-bar

Add "@narakui": "https://ui.narakcode.dev/r/{name}.json" to components.json, or install directly from https://ui.narakcode.dev/r/progress-bar.json.

Usage

Both components clamp the value to 0–100. LinearProgress is always exposed as a progress bar and is named "Progress" unless you pass label. CircularProgress is hidden from assistive technology unless you pass label.

import { CircularProgress, LinearProgress } from '@/components/ui/progress-bar';

<LinearProgress value={50} />
<CircularProgress progress={50} size="lg" />

LinearProgress Properties

PropTypeDefaultDescription
value (Required unless indeterminate)number—Progress value from 0 to 100. Required unless indeterminate is set
indeterminatebooleanfalseShows an animated bar instead of a value. Cannot be combined with value
size'sm' | 'md' | 'lg''md'Height of the bar
fillstring'bg-fill-primary'Fill color class for the bar
labelstring'Progress'Accessible name for the progress bar
classNamestring—Additional CSS classes for the outer wrapper

CircularProgress Properties

PropTypeDefaultDescription
progressnumber0Progress value from 0 to 100
size'sm' | 'md' | 'lg' | number'md'Named size variant (14, 20, or 60px) or an explicit pixel size
labelstring—Accessible name. When set, the indicator is exposed as a progress bar
strokeWidthnumber—Width of the stroke. Defaults to the size variant's stroke, or a tenth of a numeric size
strokeLinecap'butt' | 'round'—Shape of the arc ends. Defaults to butt for sm and round otherwise
trackColorstring'var(--color-fill-tertiary)'Color of the background track
progressColorstring'var(--color-fill-primary)'Color of the progress arc
bgClassNamestring—Class applied to the background track
fgClassNamestring—Class applied to the progress arc
animatedbooleanfalseDraws the arc from empty to its value when it first appears