Capture single-line strings with text_input() and multi-line prompts or descriptions with textarea_input().
text_input()
textarea_input()
<ComponentPreview title="Text & Textarea Inputs">
[
{"type": "text_input", "label": "Agent Name", "value": "Docs Assistant", "placeholder": "Enter agent name...", "name": "agent_name"},
{"type": "textarea_input", "label": "System Instructions", "value": "Answer concisely and cite the exact documentation page.", "rows": 3, "name": "instructions"}
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| text_input | label, value, placeholder, name, auto_submit | Single-line input field; binds to name inside form() or filter_bar(). |
text_input
label
value
placeholder
name
auto_submit
form()
filter_bar()
| textarea_input | label, value, placeholder, rows, name, auto_submit | Multi-line input with configurable visible rows. |
textarea_input
rows