Prompt input
An autosizing chat composer.
Plain
Disabled
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | 'Send a message…' | Placeholder text shown when the textarea is empty. |
attachable | boolean | false | Whether to show the attachment button. |
disabled | boolean | false | Disables the textarea and send button. |
ariaLabel | string | 'Message' | Accessible label for the message textarea. |
attachLabel | string | — | Overrides the localized accessible label for the attachment button. |
sendLabel | string | — | Overrides the localized accessible label for the send button. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Current textarea content. Two-way bindable with `[(value)]`. |
Outputs
| Event | Payload | Description |
|---|---|---|
submitted | string | Emitted with the trimmed message text when the user sends. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.