Mention input

A textarea with @-mention suggestions.

Prefilled

API reference

Inputs

PropTypeDefaultDescription
mentionsreadonly Mention[][]Mentions offered when the trigger character is typed.
triggerstring'@'Character that opens the mention suggestion list.
placeholderstring'Type @ to mention…'Placeholder text for the textarea.
rowsnumber3Number of visible textarea rows.
namestring''Native `name` attribute for the textarea.

Two-way models

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

PropTypeDefaultDescription
valuestring''Textarea contents. Two-way bindable with `[(value)]`.

Types

Mention

FieldTypeDescription
valuestringIdentifier for the mention.
labelstringText shown in the suggestion list and inserted into the textarea.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.