3 unstable releases
0.2.1 | Apr 19, 2024 |
---|---|
0.2.0 | Apr 19, 2024 |
0.1.0 | Apr 17, 2024 |
#1056 in GUI
12KB
162 lines
ratatui-statusbar
ratatui-statusbar is a status bar library for Ratatui crate for Rust.
Getting Started
To get started, first add it to your Cargo.toml dependencies:
cargo add ratatui-statusbar
Creating a new status bar is simple. Here's a quick example:
use status_bar::StatusBar;
let status_bar = StatusBar::new(3)
.section(0, "Left content")?;
.section(1, "Center content")?;
.section(2, "Right content")?;
Contributing
Please feel free to fork the repository, make your changes, and submit a pull request.
License
See LICENSE for details.
lib.rs
:
ratatui-statusbar
Crate
This crate provides components for creating status bars within Ratatui applications.
Features
- Define status bar layouts with any number of sections
- Customizable flex layout and spacing between sections
Dependencies
~6–11MB
~124K SLoC