Input
A single-line text control with surface variants and sizes; it also ships Field for labels, help and errors.
Paste this into your agent.
Input takes short free text such as names, emails, URLs, passwords and search terms, plus native types like file. Wrap it in a Field to wire the label, description and validation message to the control.
Install
bashnpx shadcn@4.18.0 add @siteplane/input
Import it from @/siteplane/components/input. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Textarea when the answer can run past one line.
- vs : Pick Number Field for numbers that need stepping, bounds or locale formatting.
- vs : Pick Input Group when the input needs an attached prefix, icon or action button.
- vs : Pick Autocomplete when suggestions should help people type free text.
Rules
- Give it a visible label through Field and FieldLabel. A placeholder does not name the control.
- Set
invalidon the surrounding Field and explain the problem with FieldError instead of coloring the input red. - Use
readOnlyfor values people can see and submit but not change. Usedisabledonly when the value should not submit. - Read the text through
onValueChange. A form reset leaves a controlled Input untouched, so clear your own state insideonReset. - Use
insetStart/insetEndfor adjoining elements. Put a password reveal in an InputGroup instead of inside the Input.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Siteplane Checkboxby UI Skillbook
A box for one independent yes/no choice, with indeterminate state and form submission built in.
Siteplane UI
Siteplane Checkbox Groupby UI Skillbook
Holds a set of related checkboxes as one array value, with an optional parent box that selects all.
Siteplane UI
Siteplane Date Fieldby UI Skillbook
A typed date input built from day, month and year segments, with an optional calendar popover.
Siteplane UI
Siteplane Fieldby UI Skillbook
Ties a control to its label, help text and validation messages, with top or floating labels.
Siteplane UI