# ChatInputAttachment Type documentation

## TypeScript declaration

### [ChatInputAttachment](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-chat-input.component.ts#L58-L65>)

**Kind:** interface

```
import type { ChatInputAttachment } from '@siemens/element-ng/chat-messages';
```

Attachment item interface for file attachments in chat messages, extension of [Attachment](<index.html#t:Attachment>) for [SiAttachmentListComponent](<../../components/SiAttachmentListComponent/index.html#SiAttachmentListComponent>) to use within [SiChatInputComponent](<../../components/SiChatInputComponent/index.html#SiChatInputComponent>). Adds the action file information. Can be used within [SiChatContainerComponent](<../../components/SiChatContainerComponent/index.html#SiChatContainerComponent>).

See: [Attachment](<index.html#t:Attachment>) for base attachment interface

See: [SiAttachmentListComponent](<../../components/SiAttachmentListComponent/index.html#SiAttachmentListComponent>) for the attachment list component

See: [SiChatInputComponent](<../../components/SiChatInputComponent/index.html#SiChatInputComponent>) for the chat input component

See: [SiChatContainerComponent](<../../components/SiChatContainerComponent/index.html#SiChatContainerComponent>) for the base chat container component where this can be used

See: [SiAiChatComponent](<../../components/SiAiChatComponent/index.html#SiAiChatComponent>) for the AI chat container where this needs to be used

```
interface ChatInputAttachment extends Attachment
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [file](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-chat-input.component.ts#L60-L60>) | `File` | File object |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-attachment-list.component.ts#L22-L22>) (inherited) | `string` | File name<br><br>Inherited from [Attachment](<index.html#t:Attachment>) |
| [previewTemplate](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-attachment-list.component.ts#L24-L24>) (optional, inherited) | `TemplateRef<any> \| (() => TemplateRef<any>)` | Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional)<br><br>Inherited from [Attachment](<index.html#t:Attachment>) |
| [size](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-chat-input.component.ts#L62-L62>) | `number` | File size in bytes |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-chat-input.component.ts#L64-L64>) | `string` | MIME type |

### Types Documentation

### [Attachment](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-attachment-list.component.ts#L20-L25>)

**Kind:** interface

```
import type { Attachment } from '@siemens/element-ng/chat-messages';
```

Attachment item interface for file attachments in chat messages, used by [SiAttachmentListComponent](<../../components/SiAttachmentListComponent/index.html#SiAttachmentListComponent>) and inside [SiUserMessageComponent](<../../components/SiUserMessageComponent/index.html#SiUserMessageComponent>) as well as [SiChatInputComponent](<../../components/SiChatInputComponent/index.html#SiChatInputComponent>).

See: [SiAttachmentListComponent](<../../components/SiAttachmentListComponent/index.html#SiAttachmentListComponent>) for the attachment list component

See: [SiUserMessageComponent](<../../components/SiUserMessageComponent/index.html#SiUserMessageComponent>) for the user message

See: [SiChatInputComponent](<../../components/SiChatInputComponent/index.html#SiChatInputComponent>) for the chat input component

```
interface Attachment
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-attachment-list.component.ts#L22-L22>) | `string` | File name |
| [previewTemplate](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/si-attachment-list.component.ts#L24-L24>) (optional) | `TemplateRef<any> \| (() => TemplateRef<any>)` | Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional) |
