Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

FieldGroupDefinition.md

40 lines1.1 KB

1---
2id: FieldGroupDefinition
3title: FieldGroupDefinition
4---
5​
6Defined in: [packages/preact-form/src/FieldGroup/withFields.public.ts:71](https://github.com/TanStack/form/blob/main/packages/preact-form/src/FieldGroup/withFields.public.ts#L71)
7​
8## Type Parameters
9​
10### TFields
11​
12`TFields` *extends* `FieldGroupFields`
13​
14### TFieldComponents
15​
16`TFieldComponents` *extends* `Record`\<`string`, `FunctionComponent`\<`any`\>\>
17​
18## Properties
19​
20### bindComponent
21​
22```ts
23bindComponent: FieldGroupWithFieldsFn<PreactFieldGroup<TFields, TFieldComponents>>;
24```
25​
26Defined in: [packages/preact-form/src/FieldGroup/withFields.public.ts:78](https://github.com/TanStack/form/blob/main/packages/preact-form/src/FieldGroup/withFields.public.ts#L78)
27​
28Binds a component's virtual field API to concrete paths in a form.
29​
30***
31​
32### fields
33​
34```ts
35fields: PreactFieldGroup<TFields, TFieldComponents>;
36```
37​
38Defined in: [packages/preact-form/src/FieldGroup/withFields.public.ts:76](https://github.com/TanStack/form/blob/main/packages/preact-form/src/FieldGroup/withFields.public.ts#L76)
39​
40The virtual field-group API injected into the bound component.