Loader
Animated loading indicators with terminal-style character displays.
Import
BarLoader
Horizontal progress bar with terminal-style character display. Supports both determinate and indeterminate modes.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| progress | number | - | Progress value (0-100). If undefined, runs in indeterminate mode |
| width | number | 20 | Width in characters |
| fillChar | string | '█' | Character used for filled portion |
| emptyChar | string | '░' | Character used for empty portion |
| interval | number | 100 | Animation interval in milliseconds (indeterminate mode) |
| className | string | - | Additional CSS class names |
Variants
BlockLoader
Single-character animated loader with 12 different character pattern modes.
Usage
⠁
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| mode | number | 0 | Animation mode (0-11), each with different character patterns |
| interval | number | 80 | Animation interval in milliseconds |
| className | string | - | Additional CSS class names |
Animation Modes
⣾Mode 1
←Mode 5
.Mode 11
▁Mode 3
◐Mode 10
| Mode | Pattern | Characters |
|---|---|---|
| 0 | Braille dots (sparse) | ⠁⠂⠄⡀⢀⠠⠐⠈ |
| 1 | Braille spinner (dense) | ⣾⣽⣻⢿⡿⣟⣯⣷ |
| 2 | Box quadrant | ▖▘▝▗ |
| 3 | Vertical blocks | ▁▂▃▄▅▆▇█ |
| 4 | Horizontal blocks | ▉▊▋▌▍▎▏ |
| 5 | Arrows | ←↖↑↗→↘↓↙ |
| 6 | Box drawing | ┤┘┴└├┌┬┐ |
| 7 | Triangles | ◢◣◤◥ |
| 8 | Box corners | ◰◳◲◱ |
| 9 | Circle pie | ◴◷◶◵ |
| 10 | Circle halves | ◐◓◑◒ |
| 11 | Simple dots | ... |