Tuimorphic

Progress

Progress bar with terminal-style character display.

Import

import { Progress } from 'tuimorphic';

Usage

The Progress component displays a progress bar with customizable fill and empty characters.

<Progress value={50} />

Props

PropTypeDefaultDescription
valuenumber-Current progress value (0-100) (required)
maxnumber100Maximum value
fillCharstring'█'Character used for filled portion
emptyCharstring'░'Character used for empty portion
widthnumber20Width in characters
showLabelbooleanfalseWhether to show percentage label
classNamestring-Additional CSS class names

Variants

Basic

<Progress value={50} />

With Label

25%
50%
75%
100%
<Progress value={75} showLabel />

Animated

0%

Custom Characters

<Progress value={30} fillChar="=" emptyChar="-" />
<Progress value={60} fillChar="#" emptyChar="." />

Different Widths

<Progress value={50} width={10} />
<Progress value={50} width={20} />
<Progress value={50} width={30} />

Progress Steps

<Progress value={0} showLabel />
<Progress value={25} showLabel />
<Progress value={50} showLabel />
<Progress value={75} showLabel />
<Progress value={100} showLabel />

With Custom Max

<Progress value={5} max={10} showLabel />

On this page