Skip to content
VenusUI
Get started

Product Zoom

A product page where shoppers inspect the photo with a magnifying glass.

Preview

Installation

npx shadcn@latest add @venusui/product-zoom-01

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/magnifier-loupe.tsxfrom magnifier-loupe
  • @/components/product-zoom-01.tsx

Also adds the shadcn button component if your project doesn't have it yet.

Usage

The code behind the preview above.

product-zoom-01-demo.tsx

import { ProductZoom01 } from "@/components/product-zoom-01"

export default function ProductZoom01Demo() {
  return <ProductZoom01 />
}

API reference

No props. The content is at the top of the file.

Requirements

  • shadcn button and VenusUI magnifier-loupe. The CLI installs them. React 19 and Tailwind CSS v4.

Customization

  • Swap the photo for a large, detailed shot; zoom sets how close the glass goes.
  • The people, businesses and numbers in the demo are made up; replace them with your own.

Accessibility

  • The section is labelled by its heading, and every control works from the keyboard and announces its result.

Troubleshooting

Something looks different from the preview.
Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.