Skip to main content

Crate ratatui_opentui_loader

Crate ratatui_opentui_loader 

Source
Expand description

§ratatui-opentui-loader

A KITT-style (Knight Rider) scanner/loader widget for ratatui, inspired by the opencode/opentui spinner.

A bright dot bounces left and right with a fading color trail behind it, using block characters ( / ). During the brief pause at each edge, all inactive dots fade out and then fade back in as the dot resumes — just like the original opencode loader.

§Quick start

use ratatui_opentui_loader::KittLoader;

let mut loader = KittLoader::new();
// each tick (~40ms), call loader.tick() then render:
loader.tick();
frame.render_widget(&loader, area);

Structs§

KittLoader
A KITT-style scanner loader widget.

Enums§

Theme
Pre-built color themes matching opencode’s theme collection.