Back to Components
Media

Image Zoom

Zoomable image component with smooth magnification on interaction.

PropsUsage ExampleVariations

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/image-zoom.tsx

Installation

Using shadcn CLI

npx shadcn add image-zoom --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Media Components