Skip to main content

Module textinput

Module textinput 

Source
Expand description

Single-line text input component.

This module provides a text input field for TUI applications with features like password masking, suggestions, and validation.

§Example

use bubbles::textinput::TextInput;

let mut input = TextInput::new();
input.set_placeholder("Enter your name");
input.set_value("Hello");

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

Structs§

KeyMap
Key bindings for text input navigation.
PasteErrMsg
Message for paste errors.
PasteMsg
Message for paste operations.
TextInput
Single-line text input model.

Enums§

EchoMode
Echo mode for the text input.

Type Aliases§

ValidateFn
Validation function type.