text_input
function adds an interactive text box to capture user input in your app. It maintains state between reruns, making it perfect for forms and interactive applications.
label
(str): The label displayed next to the text input, indicating its purpose. Also used to generate a consistent ID for state management.placeholder
(str): (Optional) Placeholder text shown when the input is empty. Helps guide users on what to enter.size
(float): (Optional) The width of the component in a row. Defaults to 1.0
(full row). See the Layout Guide for details.str
: The current value of the text input. Empty string if no input has been provided.text_input
s.text_input
?