Component Library

A visual catalog of out-of-the-box widgets available in Casca.

Forms & Inputs

Button

╭──────────╮ │ Submit │ ╰──────────╯
Interactive element with hover states and click events.

Input

Username: admin_user_█
Single-line text parser with cursor navigation.

Checkbox & Radio

[x] Remember Me

(o) Standard ( ) Advanced
Boolean toggles and single-choice lists.

Data Display

DataGrid

ID │ Name │ Status ────┼──────────┼──────── 101 │ SystemA │ Online 102 │ SystemB │ Offline 103 │ SystemC │ Online
Interactive tables with column sorting and cell selection.

TreeView

▼ src/ ├─ main.py └─ config.py ▶ tests/ readme.md
Hierarchical data representation with expand/collapse states.

Tabs

Logs Metrics Info ───────────────────────── [INFO] App started... [WARN] Latency high...
Switch between functional views seamlessly.

Visualizations

BarChart

██
██
██
██
██
██
██
██
██
██
██
Plotly-like charts using truecolor ANSI block characters.

Sparkline & Gauge

CPU: ⢀⣠⠴⠚⠉⠉⠓⠒⠦⠤⣄⣀ MEM: [██████████░░░] 68%
Compact indicators for inline metrics and timelines.

Slider & Tooltips

Volume: ├────────────┤ 60% Value is loud
Numeric range inputs and contextual overlay help.