label | string | Yes | — | Visible label and accessible name. |
|---|
hint | string | No | — | Supporting field guidance, associated with the control. |
|---|
error | string | No | — | Error message. Replaces hint text and marks the field invalid. |
|---|
size | ComponentSize | No | "medium" | Visual size: small, medium or large. |
|---|
htmlSize | number | No | — | Native input size attribute, measured as an approximate character width; does not select the visual component size. |
|---|
type | HTMLInputTypeAttribute | No | — | Native control type. |
|---|
value | string | number | readonly string[] | No | — | Current native control value. Pair with onChange for controlled input. |
|---|
defaultValue | string | number | readonly string[] | No | — | Initial value used when the native control is uncontrolled. |
|---|
onChange | ChangeEventHandler<HTMLInputElement, HTMLInputElement> | No | — | Native input change handler. Read value or checked from event.currentTarget. |
|---|
disabled | boolean | No | — | Disables the native control. |
|---|
required | boolean | No | — | Requires a non-empty native control value during form validation. |
|---|
readOnly | boolean | No | — | Keeps the current value readable and focusable while preventing editing. |
|---|
name | string | No | — | Native form submission field name. |
|---|
placeholder | string | No | — | Text shown when the control has no value. |
|---|
autoComplete | HTMLInputAutoCompleteAttribute | No | — | Native browser autocomplete hint. |
|---|
maxLength | number | No | — | Maximum input length enforced by the browser. |
|---|
aria-invalid | boolean | "true" | "false" | "grammar" | "spelling" | No | — | Marks the native control invalid for assistive technology. |
|---|
aria-describedby | string | No | — | IDs of additional descriptive elements; field components merge these with their hint or error ID. |
|---|
className | string | No | "" | Additional classes applied to the component’s documented root or control. |
|---|
id | string | No | — | Native control ID. Generated when omitted; the visible label and supporting text use this association. |
|---|
ref | Ref<HTMLInputElement> | No | — | Ref to the component’s documented DOM element. |
|---|