label | string | — | Input label |
isInvalid | boolean | — | Whether the value is invalid. |
isDisabled | boolean | — | Whether the input is disabled. |
isReadOnly | boolean | — | Whether the input can be selected but not changed by the user. |
isRequired | boolean | — | Whether user input is required on the input before form submission. |
validate | (value: string) => ValidationError | true | null | undefined | — | A function that returns an error message if a given value is invalid. Validation errors are displayed to the user when the form is submitted if validationBehavior="native". For realtime validation, use the isInvalid prop instead. |
autoFocus | boolean | — | Whether the element should receive focus on render. |
value | string | — | The current value (controlled). |
defaultValue | string | — | The default value (uncontrolled). |
autoComplete | string | — | Describes the type of autocomplete functionality the input should provide if any. See MDN. |
maxLength | number | — | The maximum number of characters supported by the input. See MDN. |
minLength | number | — | The minimum number of characters required by the input. See MDN. |
pattern | string | — | Regex pattern that the value of the input must match to be valid. See MDN. |
type | text textarea search url tel email password string & {} | 'text' | The type of input to render. See MDN. |
inputMode | none text tel url email numeric decimal search | — | Hints at the type of data that might be entered by the user while editing the element or its contents. See MDN. |
name | string | — | The name of the input element, used when submitting an HTML form. See MDN. |
validationBehavior | native aria | 'native' | Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA. |
children | React.ReactNode | — | The children of the component. A function may be provided to alter the children based on component state. |
className | string | — | The CSS className for the element. A function may be provided to compute the class based on component state. |
style | React.CSSProperties | — | The inline style for the element. A function may be provided to compute the style based on component state. |
variant | filled outlined | 'filled' | |
suffixText | string | — | |
prefixText | string | — | |
leadingIcon | React.ReactNode | — | |
trailingIcon | React.ReactNode | — | |