# SiFormFieldComponent documentation

**Kind:** component

**Selector:** `si-form-field`

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

Constructs a full form field including error messages, labels and aria-\* attributes. It must be used with Angular's signal forms.

Example:

```html
<si-form-field label="Name">
  <input class="form-control" [formField]="form.name" />

  <!-- Optional help button -->
  <button
    si-help-button
    type="button"
    siHelpTitle="Help for name"
    siHelpContent="The context help description"
  >More information about the name</button>
</si-form-field>
```

```
component SiFormFieldComponent implements SiFormFieldsetControl
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [label](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-field/si-form-field.component.ts#L62-L62>) (required) | `TranslatableString` | The label to be displayed in the form field. It will be translated if a translation key is available. |

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```

### [SiFormFieldsetControl](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L9-L15>)

**Kind:** interface

```
interface SiFormFieldsetControl
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [control](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L10-L10>) (readonly) | `Signal<unknown>` |  |
| [errors](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L14-L14>) (readonly) | `Signal<readonly SiFormError[]>` |  |
| [radioGroupName](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L11-L11>) (optional, readonly) | `Signal<string \| undefined>` |  |
| [required](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L12-L12>) (readonly) | `Signal<boolean>` |  |
| [touched](<https://github.com/siemens/element/blob/main/projects/element-ng/form/form-fieldset/si-form-fieldset.control.ts#L13-L13>) (readonly) | `Signal<boolean>` |  |
