103
A comment and its replies in one tidy card, where @mentions stand out and an assistant's reply opens up to show each step it took.
akacomments·replies·mentions
Run this in any project set up for the shadcn CLI. It copies the Thread source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/thread.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 { Thread } from "@/components/thread";
export default function Page() {
return <Thread />;
}A free React component in the Together collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Thread source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| commentrequired | ThreadMessage | — |
| replies | ThreadMessage[] | [] |
| currentUser | ThreadAuthor | { name: "You", initials: "YO", tone: "muted" } |
| mentionable | string[] | [] |
| className | string | — |