What is Scoria?
Scoria is volcanic rockβthe building blocks ejected from a forge. This crate provides the building blocks for terminal UIs: spinners, progress bars, text inputs, lists, tables, and more.
Components
| Component | Description |
|---|---|
Spinner |
Animated loading indicators (8 styles) |
Progress |
Progress bars (4 styles) |
TextInput |
Text input with cursor navigation |
List |
Scrollable selection lists |
Table |
Data tables with alignment |
Tabs |
Tab navigation |
Viewport |
Scrollable content areas |
Quick Start
use ;
// Spinner
let mut spinner = new.title;
spinner.tick;
println!;
// Progress bar
let bar = new
.progress
.width
.show_percentage;
println!;
// ββββββββββββββββββββββββββββββββββββββββ 60%
Installation
Ecosystem
Part of the Molten Labs open source ecosystem:
| Crate | Description |
|---|---|
| molten_brand | Design tokens & colors |
| glyphs | ANSI escape sequences |
| lacquer | Terminal styling |
| tuyere | TUI framework |
| scoria | TUI components (you are here) |
| chant | Shell glamour |
| aglow | Markdown renderer |
| censer | Pretty logging |
License
MIT OR Apache-2.0