mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-09 20:37:47 +00:00
fix: remove form.Form for headless form.getFormProps()
This commit is contained in:
@@ -8,9 +8,9 @@ title: Form API
|
||||
When using `@tanstack/react-form`, the [core form API](../../reference/formApi) is extended with additional methods for React-specific functionality:
|
||||
|
||||
- ```tsx
|
||||
Form: FormComponent
|
||||
getFormProps: () => FormProps
|
||||
```
|
||||
- A pre-bound and type-safe form component, specific to this forms instance.
|
||||
- A function that returns props for the form element.
|
||||
- ```tsx
|
||||
Field: FieldComponent<TFormData>
|
||||
```
|
||||
|
||||
@@ -32,14 +32,3 @@ A type representing a form component.
|
||||
|
||||
- `(props: FormProps) => any`
|
||||
- A function that takes `FormProps` as an argument and returns a form component.
|
||||
|
||||
### `createFormComponent`
|
||||
|
||||
```tsx
|
||||
export function createFormComponent(formApi: FormApi<any>): FormComponent
|
||||
```
|
||||
|
||||
A function that creates a form component with the provided form API instance.
|
||||
|
||||
- `formApi`
|
||||
- An instance of the `FormApi<any>` class.
|
||||
|
||||
Reference in New Issue
Block a user