Mention input

Core

A 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.json

API Reference

PropTypeDefault
valueMentionValue—
defaultValueMentionValue—
onChange(value: MentionValue) => void—
peopleMentionPerson[]—
channelsMentionChannel[]—
onMentionAdd(mention: Mention) => void—
onSubmit(value: MentionValue) => void—
submitOnEnterboolean—
placeholderstring—
minRowsnumber—
maxRowsnumber—
placement"auto" | "top" | "bottom"—
maxSuggestionsnumber—
disabledboolean—
namestring—
idstring—
classNamestring—
Categories
inputs
Dependencies
lucide-reactmotion