Progress Bar

Tremor-style progress bar with semantic variants.

Variants

Default
Neutral
Success
Warning
Error

Interactive — with animation

60%

Without label

Custom max (value=3, max=5)

3/5

ProgressBar

A Tremor-style horizontal progress bar with semantic color variants, optional animation, and an optional label. Accepts values from 0 to max (default 100).

Usage

import { ProgressBar } from "@/components/charts/progress-bar"

<ProgressBar value={60} variant="default" label="60%" />
<ProgressBar value={3} max={5} showAnimation label="3/5" />

Props

PropTypeDefaultDescription
valuenumber0Current progress value.
maxnumber100Upper boundary value.
variant"default" | "neutral" | "success" | "warning" | "error""default"Color scheme of the bar.
showAnimationbooleanfalseEnables a CSS transition when the value changes.
labelstringOptional text displayed to the right of the bar.
classNamestringExtra classes applied to the outer wrapper.