Chat thread
Reviews as messages that arrive one by one, with someone still typing.
UniversalUsed in production
Install
npx finepieces add chat-threadOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/chat-thread.jsonexample.tsx
import { ChatThread } from "@/components/fine-pieces/chat-thread";
export default function Example() {
return (
<ChatThread
heading={<>We are not the only <mark>fans.</mark></>}
messages={[
{ from: REV[0].name, avatar: REV[0].avatar, text: REV[0].text },
{ from: REV[1].name, avatar: REV[1].avatar, text: REV[1].text, color: "#A9DCD3" },
{ me: true, text: "When do we plan the next shoot?" },
{ from: REV[2].name, text: REV[2].text, color: "#F6D873" },
{ from: REV[3].name, avatar: REV[3].avatar, text: REV[3].text },
]}
/>
);
}