Skip to main content

Module textarea

Module textarea 

Source
Expand description

Multi-line text editing widget.

TextArea wraps Editor for text manipulation and provides Frame-based rendering with viewport scrolling and cursor display.

§Example

use ftui_widgets::textarea::{TextArea, TextAreaState};

let mut ta = TextArea::new();
ta.insert_text("Hello\nWorld");
assert_eq!(ta.line_count(), 2);

Structs§

TextArea
Multi-line text editor widget.
TextAreaState
Render state tracked across frames.