MentionTextarea
A textarea with an
Import
Section titled “Import”import { MentionTextarea } from "@flanksource/clicky-ui/comments";No dedicated Storybook demo is available for this component yet.
The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
autoFocus |
boolean |
— | — |
className |
string |
— | — |
data-testid |
string |
— | — |
mentionables* |
CommentMentionable[] |
— | People/agents offered in the @ -mention popover. |
onCancel |
(…) => void |
— | Escape while the popover is closed. |
onChange* |
(…) => void |
— | Called with the next value on edit or mention insertion. |
onMentionSelect |
(…) => void |
— | Fired when a mention is inserted via the popover. |
onSubmit |
(…) => void |
— | Enter (without Shift) while the popover is closed. |
placeholder |
string |
— | — |
rows |
number |
2 |
— |
value* |
string |
— | Controlled value. |