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

31 lines
971 B
TypeScript

import { Button } from "@/registry/default/ui/button"
import { Form } from "@/registry/default/ui/form"
export default function FormDemo() {
return (
<div className="w-full min-h-[400px] flex items-center justify-center p-8">
<div className="w-full max-w-md space-y-4 p-6 border rounded-lg">
<div className="space-y-2">
<label className="text-sm font-medium">Email</label>
<input
type="email"
placeholder="Enter your email"
className="w-full px-3 py-2 border rounded-md"
/>
</div>
<div className="space-y-2">
<label className="text-sm font-medium">Password</label>
<input
type="password"
placeholder="Enter your password"
className="w-full px-3 py-2 border rounded-md"
/>
</div>
<Button type="submit" className="w-full">
Submit
</Button>
</div>
</div>
)
}