Skip to main content

BasicTextField

Function BasicTextField 

Source
pub fn BasicTextField(
    __arg0: TextFieldState,
    __arg1: Modifier,
    __arg2: TextStyle,
) -> NodeId
Expand description

§When to use

Use this when you need an editable text input but want full control over the styling (no built-in borders or labels).

§Arguments

  • state - The observable text field state that holds text content and cursor position.
  • modifier - Modifiers for styling and layout.
  • style - Text styling (color, font size).

§Example

let text = remember_text_field_state("Initial text");
BasicTextField(text, Modifier::padding(8.0), TextStyle::default());