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/svelte-form/src/FieldGroup/withFields.public.ts:82](https://github.com/TanStack/form/blob/main/packages/svelte-form/src/FieldGroup/withFields.public.ts#L82)
7​
8## Type Parameters
9​
10### TFields
11​
12`TFields` *extends* `FieldGroupFields`
13​
14### TComponents
15​
16`TComponents` *extends* `Record`\<`string`, `Component`\<`any`\>\>
17​
18## Properties
19​
20### bindComponent
21​
22```ts
23bindComponent: FieldGroupWithFieldsFn<SvelteFieldGroup<TFields, TComponents>>;
24```
25​
26Defined in: [packages/svelte-form/src/FieldGroup/withFields.public.ts:89](https://github.com/TanStack/form/blob/main/packages/svelte-form/src/FieldGroup/withFields.public.ts#L89)
27​
28Binds a component's virtual field API to concrete paths in a form.
29​
30***
31​
32### fields
33​
34```ts
35fields: SvelteFieldGroup<TFields, TComponents>;
36```
37​
38Defined in: [packages/svelte-form/src/FieldGroup/withFields.public.ts:87](https://github.com/TanStack/form/blob/main/packages/svelte-form/src/FieldGroup/withFields.public.ts#L87)
39​
40The virtual field-group API injected into the bound component.