Field
Ties a control to its label, help text and validation messages, with top or floating labels.
Paste this into your agent.
Wrap Field around each form control that has a label, description or error. It owns validation timing, the required marker and the accessible links between parts, and offers floating labels for compact forms.
Install
bashnpx shadcn@4.18.0 add @siteplane/input
The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick plain Label for a control that needs a name and nothing else.
- vs : Pick Fieldset to group several Fields under one legend, or render a Field as a Fieldset for checkbox and radio groups.
- vs : Pick Form as the outer boundary that submits Fields, sets form-wide validation mode and maps server errors.
Rules
- Keep
FieldLabel, the control,FieldDescriptionandFieldErrorinside oneField. Field links them for you. - Put
requiredon the control and addrequiredIndicatorto the Field instead of typing an asterisk into the label. - Run client-side checks through
validateandvalidationMode. When your app decides the error itself, mark Field asinvalidand give FieldErrormatch. - Use
labelPlacement="floating"only with Input, Textarea, Select and single-select Combobox or Autocomplete. Leave it off any control with a leading icon. - Change spacing with the
--field-gapvariable, not agap-*utility, so FieldError stays aligned. - Install it with
input; Field has no registry item of its own.
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 Fieldsetby UI Skillbook
Groups related form fields under a shared legend and optional description, and can disable them together.
Siteplane UI