Mention input
CoreA textarea with @people and #channel mentions that act as single tokens, with suggestions at the caret.
pnpm dlx shadcn@latest add https://wui.alann.works/r/mention-input.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
value | MentionValue | — |
defaultValue | MentionValue | — |
onChange | (value: MentionValue) => void | — |
people | MentionPerson[] | — |
channels | MentionChannel[] | — |
onMentionAdd | (mention: Mention) => void | — |
onSubmit | (value: MentionValue) => void | — |
submitOnEnter | boolean | — |
placeholder | string | — |
minRows | number | — |
maxRows | number | — |
placement | "auto" | "top" | "bottom" | — |
maxSuggestions | number | — |
disabled | boolean | — |
name | string | — |
id | string | — |
className | string | — |