/tui-bars

Bar widgets for tui-rs

Primary LanguageRustMIT LicenseMIT

tui-bars

CI crate.io Docs

Provides additional bar widgets for the great ratatui crate.

Demo

use ratatui::{widgets::Block, layout::Direction};
use tui_bars::ValueBar;

let x = 1.234;

ValueBar::default()
    .direction(Direction::Vertical)
    .value(x)
    .label(format!("{x:.2}"))
    .range(5.)
    .block(Block::default().title("My Value X"));