Whether the component should ignore user interaction. Takes precedence over the `disabled` prop on the `<Field.Control>` component.
nameOptional
string | undefined
—
Identifies the field when a form is submitted. Takes precedence over the `name` prop on the `<Field.Control>` component.
valueRequired
unknown,
—
—
formValuesRequired
Form.Values,
—
—
validationModeOptional
Form.ValidationMode | undefined
onSubmit
Determines when the field should be validated. This takes precedence over the `validationMode` prop on `<Form>`. - `onSubmit`: triggers validation when the form is submitted, and re-validates on change after submission. - `onBlur`: triggers validation when the control loses focus. - `onChange`: triggers validation on every change to the control value.
validationDebounceTimeOptional
number | undefined
0
How long to wait between `validate` callbacks if `validationMode="onChange"` is used. Specified in milliseconds.
invalidOptional
boolean | undefined
—
Whether the field is invalid. Useful when the field state is controlled by an external library.
dirtyOptional
boolean | undefined
—
Whether the field's value has been changed from its initial value. Useful when the field state is controlled by an external library.
touchedOptional
boolean | undefined
—
Whether the field has been touched. Useful when the field state is controlled by an external library.
A ref to imperative actions. - `validate`: Validates the field when called.
Label
Name
Type
Default
Description
nativeLabelOptional
boolean | undefined
true
Whether the component renders a native `<label>` element when replacing it via the `render` prop. Set to `false` if the rendered element is not a label (e.g. `<div>`). This is useful to avoid inheriting label behaviors on `<button>` controls (such as `<Select.Trigger>` and `<Combobox.Trigger>`), including avoiding `:hover` on the button when hovering the label, and preventing clicks on the label from firing on the button.
Whether the wrapped control should ignore user interaction. The `disabled` prop on `<Field.Root>` takes precedence over this.
Error
Name
Type
Default
Description
matchOptional
boolean | keyof ValidityState | undefined
—
Determines whether to show the error message according to the field's [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState). Specifying `true` will always show the error message, and lets external libraries control the visibility.