Expand description
Progress bar widget
A styled progress bar with label and step counter support.
§Example
use ratatui_interact::components::{Progress, ProgressStyle};
use ratatui::layout::Rect;
use ratatui::buffer::Buffer;
use ratatui::widgets::Widget;
// Simple progress bar
let progress = Progress::new(0.75)
.label("Processing");
// With step counter
let progress = Progress::new(0.5)
.label("Building")
.steps(5, 10);
// Custom style
let progress = Progress::new(0.25)
.style(ProgressStyle::warning());Structs§
- Progress
- A progress bar widget with label and step counter support.
- Progress
Style - Style configuration for progress bars