Expand description
A popup widget for Ratatui
The popup widget is a simple widget that renders a popup in the center of the screen.
§Example
use ratatui::prelude::*;
use tui_popup::Popup;
fn render_popup(frame: &mut Frame) {
let popup = Popup::new("Press any key to exit")
.title("tui-popup demo")
.style(Style::new().white().on_blue());
frame.render_widget(&popup, frame.size());
}
§Feature flags
crossterm
— Enables processing crossterm mouse events usingPopupState::handle_mouse_event
Structs§
- Configuration for a popup.
Enums§
Traits§
- A trait for widgets that have a fixed size.