5Sponsor

Progress Bar

Determinate progress bar with percent and value/total display

Terminal
progress-bar-demo
No opentui live preview is registered for this example yet.

Installation

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

Usage

import { ProgressBar } from "@/components/ui/progress-bar";
<ProgressBar value={42} total={100} label="Uploading" />

Examples

Custom Characters and Color

Terminal
progress-bar-custom
No opentui live preview is registered for this example yet.

API Reference

ProgressBar

PropTypeDefault
valuenumberrequired
totalnumberundefined
widthnumber30
showPercentbooleantrue
showEtabooleanfalse
fillCharstring"█"
emptyCharstring"░"
colorstringundefined
labelstringundefined