Add a text input to a tab by callingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Footagesus/WindUI/llms.txt
Use this file to discover all available pages before exploring further.
:Input({...}). The returned object lets you set its value programmatically.
Parameters
Label displayed above the input field.
Secondary line of text rendered beneath the title.
Lucide icon shown in the element row (not inside the text field itself).
Lucide icon rendered inside the left edge of the text field.
"Input" renders a single-line field. "Textarea" renders a taller multi-line box.Default text pre-filled in the field.
Hint text shown when the field is empty.
Identifier used by the config system to save and restore this element’s value between sessions.
When
true, the field is disabled and overlaid with a lock indicator.Custom text shown on the lock overlay. Defaults to
"Locked".When
true, the text field is cleared when the user clicks on it to begin editing.Called when the user finishes editing (focus lost). Receives the current text string.
Methods
input:Set(value: string)
input:Set(value: string)
Sets the text field content programmatically.
Examples
Basic input with icon
Textarea with icon
Textarea without icon
Input with description
Textarea with description
Locked input
Input with Flag (config saving)
The callback fires on
FocusLost, not on every keystroke. If you need live updates, consider using the Flag system and reading the config value when needed.