tui-bars

Crates.iotui-bars
lib.rstui-bars
version0.1.0
sourcesrc
created_at2023-08-02 13:59:02.538841
updated_at2023-08-02 13:59:02.538841
descriptionBar widgets for tui-rs
homepage
repositoryhttps://github.com/gollth/tui-bars
max_upload_size
id932747
size43,876
Thore Goll (gollth)

documentation

https://docs.rs/tui-bars

README

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"));
Commit count: 8

cargo fmt