diff --git a/apps/ui/app/chat/chat-preview.tsx b/apps/ui/app/chat/chat-preview.tsx index 73c153a0a..072a7243a 100644 --- a/apps/ui/app/chat/chat-preview.tsx +++ b/apps/ui/app/chat/chat-preview.tsx @@ -122,7 +122,13 @@ const DIRECT_REPLIES = [ "Perfect. Let’s catch up this afternoon.", ]; -export function ChatPreview({ direct = false }: { direct?: boolean }) { +export function ChatPreview({ + className, + direct = false, +}: { + className?: string; + direct?: boolean; +}) { const previewId = useId(); const initialMessages = direct ? DIRECT_MESSAGES : GROUP_MESSAGES; const members: MemberId[] = direct ? ["maya"] : ["maya", "jordan", "alex"]; @@ -379,7 +385,10 @@ export function ChatPreview({ direct = false }: { direct?: boolean }) { cancelReply(); } }} - className="flex h-144 min-w-0 flex-col overflow-hidden rounded-2xl border bg-popover shadow-lg/5" + className={cn( + "flex h-144 min-w-0 flex-col overflow-hidden rounded-2xl border bg-popover shadow-lg/5", + className, + )} >
- Chat components for React with replies, reactions, mentions, and - delivery states built in. Copy the source and make it yours. -
-- Built with Base UI, Tailwind CSS, and Motion -
-+ Built with Base UI, Tailwind CSS, and Motion +
+ -