Input

A text input with built-in label, helper text, and error state handling.

Use Input when you want a ready-made field surface with labeling, helper copy, and error messaging built in.

Preview

Input states

Inputs keep label, helper text, and validation messaging aligned without extra form wrappers.

Used in your dashboard and generated URLs.
Use this for immutable values or generated fields.
A project name is required before publishing.

Registry install

pnpm dlx shadcn@latest add https://react.tileui.zmorg.cn/r/input.json

Package usage

import { Input } from '@tile-ui/react';
 
export function ProfileNameField() {
	return <Input label="Display name" helperText="Shown on your public profile." />;
}

Highlights

  • Label and helper text built in
  • Consistent ARIA wiring
  • Error-state messaging
  • Matches Textarea anatomy for form consistency

Registry dependencies

ItemPurpose
inputComponent source
stylesShared SCSS tokens and globals

API reference

PropTypeNotes
labelstringOptional field label rendered above the input.
helperTextstringDisplayed below the field when there is no error.
errorstringDisplays invalid state and error messaging.
requiredbooleanAdds required styling to the label.