# SiChatContainerInputDirective documentation

**Kind:** directive

**Selector:** `[siChatContainerInput]`

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

A directive to mark elements as input controls within a [SiChatContainerComponent](<../../components/SiChatContainerComponent/index.html#SiChatContainerComponent>).

This directive is used to identify and style input elements that belong to the chat container component, typically applied to form inputs or textareas used for composing chat messages.

Example:

```html
<si-chat-container>
  <si-chat-message>Hello!</si-chat-message>
  <si-chat-message>How are you?</si-chat-message>

  <input siChatContainerInput type="text" placeholder="Type a message..." />
</si-chat-container>
```

See: [SiChatContainerComponent](<../../components/SiChatContainerComponent/index.html#SiChatContainerComponent>) for the chat container wrapper component

```
directive SiChatContainerInputDirective
```
