Input

Markdown

A text input that works with Field and your own validation.

Used in Workspace integrations, SaaS admin, Settings and billing and 1 more patterns.

Use it for
A single line of free text, inside a Field.
Not for
Long text or a value chosen from a list. Try Textarea, Select or Combobox.

Input preview

Loading example…

Installation

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

Usage and props

Use for a single-line form value. Wrap it in Field for a label, help text and an error, or connect a label with id and htmlFor. A placeholder does not replace a label. Validate submitted values on the server.

valuestring | number | readonly string[] (optional)
The controlled value. For a text field, keep a string in application state.
onChange(event: ChangeEvent<HTMLInputElement>) => void (optional)
Read event.currentTarget.value to update your controlled text value.
typeHTMLInputTypeAttribute (optional)
Defaults to text. Choose email, password or another native input type as needed.
namestring (optional)
The key used in native form data.
requiredboolean (optional)
Enables native required validation. Validate application rules separately.
disabledboolean (optional)
Blocks editing and excludes the input from native form submission.
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
Native input props/ref · value · onChange · disabled? · readOnly?
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 "Input" 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