Skip to main content

Module textarea

Module textarea 

Source
Expand description

Multi-line text area component.

This module provides a multi-line text editor for TUI applications with features like line numbers, word wrapping, and viewport scrolling.

§Example

use bubbles::textarea::TextArea;

let mut textarea = TextArea::new();
textarea.set_value("Line 1\nLine 2\nLine 3");

// Render the textarea
let view = textarea.view();

Structs§

KeyMap
Key bindings for textarea navigation.
PasteErrMsg
Message for paste errors.
PasteMsg
Message for paste operations.
Styles
Styles for the textarea in different states.
TextArea
Multi-line text area model.