Field

Markdown

A shared label, description and validation message around a form control.

Used in SaaS admin, Settings and billing and Marketing.

Use it for
Wrapping any form control with its label, description and validation message.
Not for
Controls without a visible label, such as a search bar in a toolbar. Try InputGroup.

Field preview

Loading example…

Installation

npm install @stackunseen/ui
import { Field } from '@stackunseen/ui';
Styles: @stackunseen/ui/styles.css

Usage and props

The application owns the value and validation result. Field associates the visible label, description and error with its control; a rendered error is not server validation.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

label · description? · error? · required? · disabled? · invalid? · labelAs? · children
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
label · description? · error? · required? · disabled? · invalid? · labelAs? · children
Keeps honest
The application owns the value and validation result. Field associates the visible label, description and error with its control; a rendered error is not server validation.
MCP
read_component "Field" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

Tab focuses the native control. Labels are associated with their inputs; disabled controls leave the tab order. Error text remains available through aria-describedby.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio