1 unstable release

0.1.0 Aug 2, 2023

#746 in Command-line interface

40 downloads per month

Custom license

10KB
161 lines

tui-bars

CI crate.io Docs

Provides additional bar widgets for the great tui-rs crate.

Demo

use tui::{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"));

Dependencies

~2–13MB
~103K SLoC