mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
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 ✅
10 lines
1.4 KiB
JSON
10 lines
1.4 KiB
JSON
{
|
|
"name": "macos-dock-demo",
|
|
"files": [
|
|
{
|
|
"name": "macos-dock-demo.tsx",
|
|
"content": "\"use client\"\n\nimport { Calendar, Home, Mail, Search, Settings, User } from \"lucide-react\"\n\nimport { Dock, DockItem } from \"@/registry/default/ui/macos-dock\"\n\nexport default function MacOSDockDemo() {\n return (\n <div className=\"flex min-h-[300px] items-end justify-center pb-12\">\n <Dock>\n <DockItem tooltip=\"Finder\" onClick={() => console.log(\"Finder\")}>\n <Home className=\"h-6 w-6 text-white\" />\n </DockItem>\n <DockItem tooltip=\"Safari\" onClick={() => console.log(\"Safari\")}>\n <Search className=\"h-6 w-6 text-white\" />\n </DockItem>\n <DockItem tooltip=\"Mail\" onClick={() => console.log(\"Mail\")}>\n <Mail className=\"h-6 w-6 text-white\" />\n </DockItem>\n <DockItem tooltip=\"Calendar\" onClick={() => console.log(\"Calendar\")}>\n <Calendar className=\"h-6 w-6 text-white\" />\n </DockItem>\n <DockItem tooltip=\"Settings\" onClick={() => console.log(\"Settings\")}>\n <Settings className=\"h-6 w-6 text-white\" />\n </DockItem>\n <DockItem tooltip=\"Profile\" onClick={() => console.log(\"Profile\")}>\n <User className=\"h-6 w-6 text-white\" />\n </DockItem>\n </Dock>\n </div>\n )\n}\n"
|
|
}
|
|
],
|
|
"type": "components:example"
|
|
} |