Y2K UI

Progress

A flat progress bar — thick navy border, pastel blue fill. Supports an optional label, percentage showValue, and a trailingLabel for unit text. The indicator color can be swapped via indicatorClassName.

progress-demo.app
Loading assets33%
Upload progress66%24 / 36 MB

Installation

terminal.sh
npx y2kui@latest add progress

Usage

import { Progress } from "@/components/ui/progress"

Props

PropTypeDefaultDescription
valuenumber0Current value.
maxnumber100Maximum value.
labelReactNodeOptional label shown above the bar.
showValuebooleanfalseShow the current percentage to the right of the label.
trailingLabelReactNodeRight-aligned hint text (e.g. '24 / 36 MB').
indicatorClassNamestringOverride the indicator fill color (e.g. 'bg-[#8ff0d0]').
wrapperClassNamestringClasses for the outer wrapper when label/value are shown.

On this page