Prompt input

An autosizing chat composer.

Plain

Disabled

API reference

Inputs

PropTypeDefaultDescription
placeholderstring'Send a message…'Placeholder text shown when the textarea is empty.
attachablebooleanfalseWhether to show the attachment button.
disabledbooleanfalseDisables the textarea and send button.
ariaLabelstring'Message'Accessible label for the message textarea.
attachLabelstringOverrides the localized accessible label for the attachment button.
sendLabelstringOverrides the localized accessible label for the send button.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring''Current textarea content. Two-way bindable with `[(value)]`.

Outputs

EventPayloadDescription
submittedstringEmitted 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.