image-viewer-basic-ex-02
stackzero/image-viewer-basic-ex-02FreeComponent
stackzero publishes no description for this item.
Install it
npx shadcn@latest add https://ui.stackzero.co/r/image-viewer-basic-ex-02.jsonSource
1"use client";2import ImageViewer from "@/components/commerce-ui/image-viewer-basic";34const EXAMPLE_IMAGE_URL =5 "https://raw.githubusercontent.com/stackzero-labs/ui/refs/heads/main/public/placeholders/speaker-01.jpg";6const EXAMPLE_THUMBNAIL_URL =7 "https://raw.githubusercontent.com/stackzero-labs/ui/refs/heads/main/public/placeholders/speaker-01.jpg";89export default function ImageViewer_Basic_Ex_02() {10 return (11 <div className="flex w-full flex-col gap-8">12 <div>13 <div className="flex flex-col gap-6 md:grid-cols-3">14 {/* Tall thumbnail - 300px height */}15 <div className="flex flex-col gap-2">16 <p className="text-muted-foreground text-xs">Tall (300px)</p>17 <ImageViewer18 thumbnailUrl={EXAMPLE_THUMBNAIL_URL}19 imageUrl={EXAMPLE_IMAGE_URL}20 classNameThumbnailViewer="h-[300px]"21 imageTitle="Tall Thumbnail Example"22 />23 </div>2425 {/* Medium thumbnail - 200px height */}26 <div className="flex flex-col gap-2">27 <p className="text-muted-foreground text-xs">Medium (200px)</p>28 <ImageViewer29 thumbnailUrl={EXAMPLE_THUMBNAIL_URL}30 imageUrl={EXAMPLE_IMAGE_URL}31 classNameThumbnailViewer="h-[200px]"32 imageTitle="Medium Thumbnail Example"33 />34 </div>3536 {/* Small thumbnail - 100px height */}37 <div className="flex flex-col gap-2">38 <p className="text-muted-foreground text-xs">Small (100px)</p>39 <ImageViewer40 thumbnailUrl={EXAMPLE_THUMBNAIL_URL}41 imageUrl={EXAMPLE_IMAGE_URL}42 classNameThumbnailViewer="h-[100px]"43 imageTitle="Small Thumbnail Example"44 />45 </div>46 </div>47 </div>48 </div>49 );50}
What it pulls in
npm packages
Other registry items
Files it writes
More from stackzero
All 112 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| face-rating-basicface-rating-basic | stackzero | Components | Free | 1 dep | |
| face-rating-gradientface-rating-gradient | stackzero | Components | Free | 2 deps | |
| image-carousel-basicimage-carousel-basic | stackzero | Components | Free | 5 deps | |
| image-viewer-basicimage-viewer-basic | stackzero | Components | Free | 3 deps | |
| image-viewer-basic-ex-01image-viewer-basic-ex-01 | stackzero | Components | Free | 1 dep | |
| image-viewer-motionimage-viewer-motion | stackzero | Components | Free | 4 deps | |
| image-viewer-motion-ex-01image-viewer-motion-ex-01 | stackzero | Components | Free | 1 dep | |
| input-iconinput-icon | stackzero | Components | Free | 1 dep |
