All of the input components are returned from
useForm().Example
Parameters
Record<string, FormValue>
required
A form schema is how you tell Attio about the shape and validation rules
of your form data.
Record<string, any>
required
These values must match the type defined by your form schema.
Returns
useForm returns an object containing the following functions and React components.
(path: string, value: any) => void
An imperative function to update a particular value in the form.
() => void
An imperative function to submit the form. It will cause validation to run, and if the validation passes it will call the
onSubmit handler that you have passed to <Form/>.You should typically prefer to render a
<SubmitButton /> instead of calling submit directly.React.ComponentType
Boolean checkbox input. Link to full docs.
React.ComponentType
Dropdown selection input. Link to full docs.
React.ComponentType
Date and time input field. Link to full docs.
React.ComponentType
A form wrapper with an
onSubmit handler. Link to full docs.React.ComponentType
Group multiple inputs together. Link to full docs.
React.ComponentType
Numeric input field. Link to full docs.
React.ComponentType
Date input field (without time). Link to full docs.
React.ComponentType
Button to submit the form. Link to full docs.
React.ComponentType
Text input field. Link to full docs.
React.ComponentType
Multi-line text input field. Link to full docs.
React.ComponentType
Boolean toggle switch. Link to full docs.
React.ComponentType
Access form state for conditional rendering. Link to full docs.
React.ComponentType
Select Attio records. Link to full docs.
React.ComponentType
Select Attio workspace users. Link to full docs.
React.ComponentType
Rich text editor input.