Components
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.
pnpm dlx shadcn@latest add https://react.tileui.zmorg.cn/r/input.jsonimport { Input } from '@tile-ui/react';
export function ProfileNameField() {
return <Input label="Display name" helperText="Shown on your public profile." />;
}| Item | Purpose |
|---|---|
input | Component source |
styles | Shared SCSS tokens and globals |
| Prop | Type | Notes |
|---|---|---|
label | string | Optional field label rendered above the input. |
helperText | string | Displayed below the field when there is no error. |
error | string | Displays invalid state and error messaging. |
required | boolean | Adds required styling to the label. |