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.1 KiB
JSON
10 lines
1.1 KiB
JSON
{
|
|
"name": "form-demo",
|
|
"files": [
|
|
{
|
|
"name": "form-demo.tsx",
|
|
"content": "import { Button } from \"@/registry/default/ui/button\"\nimport { Form } from \"@/registry/default/ui/form\"\n\nexport default function FormDemo() {\n return (\n <div className=\"w-full min-h-[400px] flex items-center justify-center p-8\">\n <div className=\"w-full max-w-md space-y-4 p-6 border rounded-lg\">\n <div className=\"space-y-2\">\n <label className=\"text-sm font-medium\">Email</label>\n <input\n type=\"email\"\n placeholder=\"Enter your email\"\n className=\"w-full px-3 py-2 border rounded-md\"\n />\n </div>\n <div className=\"space-y-2\">\n <label className=\"text-sm font-medium\">Password</label>\n <input\n type=\"password\"\n placeholder=\"Enter your password\"\n className=\"w-full px-3 py-2 border rounded-md\"\n />\n </div>\n <Button type=\"submit\" className=\"w-full\">\n Submit\n </Button>\n </div>\n </div>\n )\n}\n"
|
|
}
|
|
],
|
|
"type": "components:example"
|
|
} |