Files
zeekay f65a089a61 fix: Resolve all remaining TypeScript errors (29 → 0)
Demo prop fixes (default theme):
- animated-text-demo: Changed animation from 'fade' to 'gradient'
- form-demo: Removed Form wrapper, used plain div (Form is FormProvider)
- image-crop-demo: Changed aspectRatio to aspect prop
- pixel-image-demo: Removed alt prop (not in interface)

New-york theme cleanup:
- Synced 4 fixed demos with correct import paths
- Removed 18 demos for non-existent components (3d-*, ai-*, animated-*, code-*, apple-*, reveal-*)
- Removed 3 demos for stub components (advanced-navigation-bar, announcement, music-player)
- Fixed import types: Changed named imports to default imports for stub components

Chart fixes:
- Removed activeIndex prop from Pie component (not supported by recharts)

Result: Zero TypeScript errors! Complete type safety achieved.
2025-11-06 00:52:40 -08:00

14 lines
404 B
TypeScript

import { PixelImage } from "@/registry/default/ui/pixel-image"
export default function PixelImageDemo() {
return (
<div className="w-full min-h-[400px] flex items-center justify-center p-8 bg-slate-900">
<PixelImage
src="https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?w=400&h=400&fit=crop"
pixelSize={8}
className="rounded-lg"
/>
</div>
)
}