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, + )} >
diff --git a/apps/ui/app/chat/chat-showcase.tsx b/apps/ui/app/chat/chat-showcase.tsx index 2210ecbab..15977a826 100644 --- a/apps/ui/app/chat/chat-showcase.tsx +++ b/apps/ui/app/chat/chat-showcase.tsx @@ -1,5 +1,9 @@ "use client"; +import { + PageHeaderDescription, + PageHeaderHeading, +} from "@coss/ui/shared/page-header"; import { ArrowRightIcon, ArrowUpRightIcon, @@ -15,11 +19,12 @@ import { useCopyToClipboard } from "@/registry/default/hooks/use-copy-to-clipboa import { Badge } from "@/registry/default/ui/badge"; import { Button } from "@/registry/default/ui/button"; import { DrawerTrigger } from "@/registry/default/ui/drawer"; -import { Tabs, TabsList, TabsPanel, TabsTab } from "@/registry/default/ui/tabs"; +import { Tabs, TabsPanel, TabsPrimitive } from "@/registry/default/ui/tabs"; import { ChatFeatures } from "./chat-features"; import { ChatLayouts } from "./chat-layouts"; import { ChatPreview } from "./chat-preview"; import { ChatStatesSection } from "./chat-states-section"; +import { PageHero } from "@/components/page-hero"; const COMPONENT_MAP = [ { area: "Conversation", components: ["ChatConversation", "useChatScroll"] }, @@ -108,70 +113,77 @@ export function ChatShowcase() { ( <> -
-
- - -

- Make room -
- for conversation. -

-

- Chat components for React with replies, reactions, mentions, and - delivery states built in. Copy the source and make it yours. -

-
- } - onClick={() => select("conversation")} - > - Open the full demo - - -
-
- -
-

- Built with Base UI, Tailwind CSS, and Motion -

-
-
- - + - Direct message - Group chat - - - + + direct message + + + + group chat + + + + - - + + + } + > + + + + Make room +
+ for conversation. +
+ + Chat components for React with replies, reactions, mentions, and + delivery states built in. Copy the source and make it yours. + +
+ } + onClick={() => select("conversation")} + > + Open the full demo + +
-
+ +

+ Built with Base UI, Tailwind CSS, and Motion +

+ -
+
- - Page Not Found - - The page you're looking for doesn't exist or may have been - moved. - -
-
-
-
+ + Page Not Found + + The page you’re looking for doesn’t exist or may have been moved. + +
+
+
); } diff --git a/apps/ui/app/page.tsx b/apps/ui/app/page.tsx index 4e706d5ba..b5fc25770 100644 --- a/apps/ui/app/page.tsx +++ b/apps/ui/app/page.tsx @@ -1,5 +1,4 @@ import { - PageHeader, PageHeaderDescription, PageHeaderHeading, } from "@coss/ui/shared/page-header"; @@ -18,6 +17,7 @@ import { } from "@/registry/default/ui/card"; import { particles } from "@/registry/registry-particles"; import { getCategoryThumbnail } from "@/components/category-thumbnails"; +import { PageHero } from "@/components/page-hero"; import { categories } from "@/config/categories"; import { PAGES_NEW } from "@/lib/docs"; @@ -32,43 +32,35 @@ export const metadata: Metadata = { export default function Page() { return ( <> + + + A new, modern UI component library built on top of Base UI. + + {description} +
+ + +
+
- - - A new, modern UI component library built on top of Base UI. - - {description} -
- - -
-
-
-
-