# WebComponent Type documentation

## TypeScript declaration

### [WebComponent](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L124-L128>)

**Kind:** type alias

```
import type { WebComponent } from '@siemens/dashboards-ng';
```

```
type WebComponent = CommonFactoryFields & {
  factoryType: 'web-component';
  url: string;
  [index: string]: any;
}
```

#### Index Signatures

| Name | Type | Description |
| --- | --- | --- |
| [\[index: string\]](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L127-L127>) | `any` |  |

### Types Documentation

### [CommonFactoryFields](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L73-L81>)

**Kind:** type alias

```
type CommonFactoryFields = {
  componentName: string;
  editorComponentName?: string;
  /**
   * CSS class that is added to the modal dialog when component editor dialog is shown.
   * Provides the option to change the size if the dialog.
   */
  editorModalClass?: string;
}
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [componentName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L74-L74>) | `string` |  |
| [editorComponentName](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L75-L75>) (optional) | `string` |  |
| [editorModalClass](<https://github.com/siemens/element/blob/main/projects/dashboards-ng/src/model/widgets.model.ts#L80-L80>) (optional) | `string` | CSS class that is added to the modal dialog when component editor dialog is shown. Provides the option to change the size if the dialog. |
