Conversation Preview
A glassy chat card with an orb-avatared agent thread and an optional input, for AI and voice product pages. Harvested from Hello Human.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/conversation-preview.jsonYour order is on its way with FedEx! It should arrive tomorrow by 8pm.
Would you like me to text you the tracking link?
Yes please, that would be great.
Enter your message
Usage
conversation-preview-example.tsx
import { ConversationPreview } from "@dbs/ui";
export default function ConversationPreviewExample() {
return (
<div className="w-80">
<ConversationPreview
messages={[
{
sender: "agent",
text: "Your order is on its way with FedEx! It should arrive tomorrow by 8pm.",
},
{
sender: "agent",
text: "Would you like me to text you the tracking link?",
},
{ sender: "user", text: "Yes please, that would be great." },
]}
placeholder="Enter your message"
/>
</div>
);
}