Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA complete comment composer: @ mentions, Ctrl or Cmd+Enter to submit, a character counter, a Will notify line and a Post button that stays off until the comment is valid. Use this when you need the whole comment box, not only the mention list.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for comment threads on documents, tickets and pull requests, where Enter adds a line, Ctrl or Cmd+Enter posts, and the author needs to know who will be told.
Do not use it when you only need the mention list. Use a mention input.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
| --------------- | --------------------------------- | -------------- | ---------------------- | ------------------------------------------------------------- |
| people | { id, name }[] | - | Who can be mentioned. |
| onSubmit | ({ text, mentioned }) => void \\ | Promise<void> | - | Posts the comment. Reject to keep the text and show an error. |
| maxLength | number | 500 | Longest comment. |
| value | string | - | The text (controlled). |
| defaultValue | string | "" | Initial text. |
| onValueChange | (value: string) => void | - | Runs on every change. |
120 of 500) is a polite status that turns into 380 over the limit text, not only a colour change; the Post button is aria-disabled with a reason.Could not post. Your comment is still here. in an alert.The pattern ships with a Testing Library test (comment-composer-mentions-submit.test.tsx) that covers mention insertion, the submit shortcut, validation, the counter and a failed post keeping the text.