{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
* | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
* |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
* |___/
*
* This file is generated from the documentation data in packages/twenty-ui/generated.
* To update it, edit the component prop types or design tokens in twenty-ui and run:
* npx nx generate:ui twenty-docs
*/}
### Field.Root
A ref to imperative actions.
- `validate`: Validates the field when called.
CSS class applied to the element, or a function that
returns a class based on the component's state.
Whether the field's value has been changed from its initial value.
Useful when the field state is controlled by an external library.
Whether the component should ignore user interaction.
Takes precedence over the `disabled` prop on the `` component.
Whether the field is invalid.
Useful when the field state is controlled by an external library.
Identifies the field when a form is submitted.
Takes precedence over the `name` prop on the `` component.
Allows you to replace the component's HTML element
with a different tag, or compose it with another component.
Accepts a `ReactElement` or a function that returns the element to render.
Style applied to the element, or a function that
returns a style object based on the component's state.
Whether the field has been touched.
Useful when the field state is controlled by an external library.
A function for custom validation. Return a string or an array of strings with
the error message(s) if the value is invalid. Returning nothing, `null`, an empty
string, or an empty array means the value is valid.
Asynchronous functions are supported, but they do not prevent form submission
when using `validationMode="onSubmit"`.
How long to wait between `validate` callbacks if
`validationMode="onChange"` is used. Specified in milliseconds.
Determines when the field should be validated.
This takes precedence over the `validationMode` prop on `
### Field.Label
CSS class applied to the element, or a function that
returns a class based on the component's state.
Whether the component renders a native `