# SiFormlyComponent documentation

**Kind:** component

**Selector:** `si-formly`

```
import { SiFormlyComponent } from '@siemens/element-ng/formly';
```

```
component SiFormlyComponent<TControl extends { [K in keyof TControl]: AbstractControl }> implements OnInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [fields](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L82-L82>) | `FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[]` | `[]` | Define all form fields with FormlyFieldConfig array. |
| [form](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L51-L51>) | `FormGroup<TControl> \| undefined` |  | Reactive form used by Formly. A form is created when none is provided. |
| [labelWidth](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L88-L88>) | `number \| undefined` |  | Width in pixels applied to field labels. |
| [model](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L60-L60>) | `{}` | `{}` | Mapping of field name and its value. |
| [options](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L69-L69>) | `FormlyFormOptions` | `{}` | Define FormlyFormOptions. |
| [schema](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L74-L74>) | `JSONSchema7 \| undefined` |  | JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [fieldsChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L85-L85>) | `FormlyFieldConfig<FormlyFieldProps & { [additionalProperties: string]: any; }>[]` | Emits the effective field configuration, including configuration generated from `schema`. |
| [formChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L51-L51>) | `FormGroup<TControl> \| undefined` | Reactive form used by Formly. A form is created when none is provided. |
| [modelChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L60-L60>) | `{}` | Mapping of field name and its value. |
| [schemaChange](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L74-L74>) | `JSONSchema7 \| undefined` | JSONSchema7 can be used instead of FormlyFieldConfig array for defining form fields. |

#### Attributes and Methods

##### formlyForm

[Source for formlyForm](<https://github.com/siemens/element/blob/main/projects/element-ng/formly/si-formly.component.ts#L48-L48>)

**Modifiers:** readonly

**Type:** `Signal<FormlyForm | undefined>`

**Default:** `viewChild(FormlyForm)`

Formly main container to provide modelChange subscriptions.
