009
Type @ in a message and a picker opens right at the caret with people, files and channels; what you pick lands as a token that moves and deletes as one piece.
akamentions·at mention·autocomplete
Run this in any project set up for the shadcn CLI. It copies the Mention Picker source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/mention-picker.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { MentionToken } from "@/components/mention-picker";
export default function Page() {
return <MentionToken />;
}A free React component in the Conversation collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Mention Picker source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| kindrequired | MentionKind | — |
| labelrequired | string | — |