Inputs
Text input
Also calledtext fieldtextboxsingle-line input
A single-line field for entering or editing text, such as a name or email address.
How people describe it
- “empty box where I type my name”
- “one line field with a label above it”
- “rectangle with a blinking cursor for typing”
Good for
- Names and contact details
- Short search queries
Don’t mix it up with
Records a checked choice rather than typed text.
What your library calls it
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Input |
Accessibility checklist
- Associate a visible label; do not rely on placeholder text
- Link help and errors with aria-describedby
- Use appropriate autocomplete and visible focus
Try it
We will never share this.
Type, switch the field type, and try the error and success states.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
Prompt
Add a text input with a visible label and associated help text.
~16 estimated prompt tokensDetailed: ~68 estimated prompt tokens
Rough estimate for prompt text only; actual counts vary by model and context.
<label for="full-name">Full name</label>
<input id="full-name" name="name" type="text" autocomplete="name" aria-describedby="name-help" style="min-height:44px; width:100%; box-sizing:border-box">
<p id="name-help">Enter your name as you would like it displayed.</p>Used in
Explore website blueprints that use this component.