ORIZEN/TUI
ComponentsProgress

Progress

stable

Horizontal progress bar with determinate and indeterminate modes.

Browser preview is a simulation. The copied component runs in actual terminal apps.

progress.tsx
Animated:░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░0%
Static:████████████████████░░░░░░░░░░65%
Complete:██████████████████████████████100%

Installation

npx orizen-tui@latest add progress

if dependency install fails, run: npm install ink@^5.0.1 react@^18.3.1 @types/react@^18.3.18 orizen-tui-core@latest

Usage

progress.imports.tsx
progress.example.tsx

Examples

Usage

progress.example1.tsx
Animated:░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░0%
Static:████████████████████░░░░░░░░░░65%
Complete:██████████████████████████████100%

API Reference

Progress

valueundefined
number

Current value (omit for indeterminate)

max100
number

Maximum value

width40
number

Bar width in columns

labelundefined
string

Label before the bar

showPercenttrue
boolean

Show percentage after bar