Files
zeekay f91e76841b fix: Resolve SSR errors and add 'use client' to interactive demos
Major fixes:
- Fixed wagmi/Web3 SSR errors by lazy-loading config in Web3Provider
- Added SidebarProvider to sidebar-demo components
- Added 'use client' to 14 demo files with hooks/state/event handlers
- Temporarily disabled force-static on blocks page

Build progress: 0 → 258/1035 pages (25%) before hitting /blocks error

Remaining issue:
- /blocks page has function-passing error during static generation

Package versions confirmed:
- React 19.2.0 ✅
- Next.js 16.0.0 ✅
- Tailwind CSS 4.1.14 ✅
2025-11-06 01:51:19 -08:00

60 lines
1.7 KiB
TypeScript

"use client"
import {
Calendar,
Home,
Mail,
Music,
Search,
Settings,
User,
Video,
} from "lucide-react"
import { Dock, DockItem } from "@/registry/default/ui/dock"
export default function DockDemo() {
return (
<div className="relative flex h-[500px] w-full items-end justify-center rounded-lg border bg-gradient-to-b from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800">
<Dock className="mb-8">
<DockItem tooltip="Home" onClick={() => console.log("Home clicked")}>
<Home className="h-6 w-6" />
</DockItem>
<DockItem
tooltip="Search"
onClick={() => console.log("Search clicked")}
>
<Search className="h-6 w-6" />
</DockItem>
<DockItem tooltip="Music" onClick={() => console.log("Music clicked")}>
<Music className="h-6 w-6" />
</DockItem>
<DockItem tooltip="Video" onClick={() => console.log("Video clicked")}>
<Video className="h-6 w-6" />
</DockItem>
<DockItem tooltip="Mail" onClick={() => console.log("Mail clicked")}>
<Mail className="h-6 w-6" />
</DockItem>
<DockItem
tooltip="Calendar"
onClick={() => console.log("Calendar clicked")}
>
<Calendar className="h-6 w-6" />
</DockItem>
<DockItem
tooltip="Settings"
onClick={() => console.log("Settings clicked")}
>
<Settings className="h-6 w-6" />
</DockItem>
<DockItem
tooltip="Profile"
onClick={() => console.log("Profile clicked")}
>
<User className="h-6 w-6" />
</DockItem>
</Dock>
</div>
)
}