Text Input
Text inputs collect short-form user input. This component supports label, hint text, disabled, and error states.
Default
A standard text input with a label. Use the placeholder prop to provide an example value.
Hint
Use hint to provide additional context below the input.
Error
Use error to show a validation message below the input. The border and text turn red to draw attention to the issue.
Disabled
Add disabled to prevent interaction. Disabled inputs are visually dimmed and cannot be focused.
Required
Add required to mark a field as mandatory. A visual indicator is shown alongside the label.
Usage
Always provide a label for accessibility. Use hint for helper text and error for validation messages — only one will show at a time, with error taking priority.
Explore the Text Input component by adjusting its properties below. Changes are reflected in the live preview and code snippet in real time.
Properties
<TextInput label="Plant name" placeholder="e.g. Monstera Deliciosa" />