Expand description
Reusable form widgets for terminal applications.
Each widget handles keyboard input via [handle_key] and renders via a method
taking &mut Frame and Rect. All widgets return WidgetResult<T> to signal
whether input is still pending, confirmed, or cancelled.
Re-exports§
pub use numeric_field::NumericField;pub use settings_form::SettingsForm;
Modules§
- numeric_
field - Single numeric value with browse (arrow incr/decr) and edit (digit entry) modes.
- settings_
form - Vertical stack of
NumericFieldinstances with field navigation.
Structs§
- Confirm
Dialog - Yes/No confirmation dialog.
- Multi
Select List - Multi-selection checkbox list (arrow keys + Space to toggle + Enter to confirm).
- Select
List - Single-selection list widget (arrow keys + Enter).
- Text
Input - Single-line text input with cursor.
Enums§
- Widget
Result - Result of a widget’s key handling.