A ledger thread with inline mentions that never shift the line, and a composer whose typed mentions wash in place, with an @ and # popover anchored at the caret.
pnpm dlx shadcn@latest add @beautiful-ui-pro/mention-composerNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { MentionComposer, MentionThread, type MentionEntryData, type MentionPerson, type MentionRef } from "@/components/ui/notchset/mention-composer";
const people: MentionPerson[] = [
{ name: "Maya Kerr", initials: "MK", role: "ML LEAD", presence: "online" },
{ name: "Jonas Weber", initials: "JW", role: "EVALS", presence: "away" },
];
const runs: MentionRef[] = [{ id: "run_8f3a1", meta: "PLANNER · 2.1S", kind: "ok" }];
export function RunDiscussion() {
const [entries, setEntries] = React.useState<MentionEntryData[]>([{ id: 1, at: "09:38", initials: "MK", author: "Maya Kerr", text: "#run_8f3a1 looks right. @Jonas Weber can you check citations?" }]);
return (
<div className="grid gap-3">
<MentionThread entries={entries} people={people} refs={runs} />
<MentionComposer
people={people}
refs={runs}
me={{ initials: "JW" }}
onPost={(text) => setEntries((e) => [...e, { id: e.length + 1, at: new Date().toTimeString().slice(0, 5), initials: "JW", author: "Jonas Weber", me: true, text }])}
/>
</div>
);
}MentionComposer–
{ people, refs, me, onPost, placeholder }The composer.
MentionThread–
{ entries, people, refs, fresh }The ledger.
MentionText–
{ text, people, refs }A body with mentions drawn inline.
components/ui/notchset/mention-composer.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.