tui-popup
A popup widget for Ratatui
The popup widget is a simple widget that renders a popup in the center of the screen.
Example
use *;
use Popup;
State
The widget supports storing the position of the popup in PopupState. This is experimental and the exact api for this will likely change.
use *;
use Popup;
Features
- automatically centers
- automatically sizes to content
- style popup
- move the popup (using state)
- configure size / position
- set border set / style
- handle mouse events for dragging
- events for close action
- configure text wrapping in body to conform to a specific size