# provideSiFormFieldConfig Type documentation

## TypeScript declaration

### [provideSiFormFieldConfig](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-field/si-form-field.provider.ts#L21-L28>)

**Kind:** constant

```
import { provideSiFormFieldConfig } from '@siemens/element-ng/form';
```

Provides the signal forms configuration required by [SiFormFieldComponent](<../../components/SiFormFieldComponent/index.html#SiFormFieldComponent>).

It restores the `ng-*` classes applied by the directives of [FormsModule](<https://angular.dev/api/forms/FormsModule>) / [ReactiveFormsModule](<https://angular.dev/api/forms/ReactiveFormsModule>).

Example:

```ts
bootstrapApplication(AppComponent, {
  providers: [provideSiFormFieldConfig()]
});
```

```
(config?: SignalFormsConfig) => Provider[] = ...
```

```
provideSiFormFieldConfig(config?: SignalFormsConfig = {}): Provider[]
```

Provides the signal forms configuration required by [SiFormFieldComponent](<../../components/SiFormFieldComponent/index.html#SiFormFieldComponent>).

It restores the `ng-*` classes applied by the directives of [FormsModule](<https://angular.dev/api/forms/FormsModule>) / [ReactiveFormsModule](<https://angular.dev/api/forms/ReactiveFormsModule>).

Example:

```ts
bootstrapApplication(AppComponent, {
  providers: [provideSiFormFieldConfig()]
});
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [config](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-field/si-form-field.provider.ts#L21-L21>) (optional) | `SignalFormsConfig` | `{}` |  |

**Returns:** [Provider](<https://angular.dev/api/core/Provider>)`[]`
