# Image zoom

> zoom in and out with detect touch event.

A shadcn/ui block from the [@systaliko-ui](https://systaliko-ui.vercel.app) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/systaliko-ui/image-zoom).

- Page, with a live preview: https://shadcn.exchange/r/systaliko-ui/image-zoom
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/systaliko-ui/image-zoom-light-fc15ea13eecd04c9.png
- Registry item: https://systaliko-ui.vercel.app/r/image-zoom.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://systaliko-ui.vercel.app/r/image-zoom.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `react-inner-image-zoom`

## Files

### `registry/ecommerce/image-zoom/index.tsx`

```tsx
'use client';

import InnerImageZoom, { InnerImageZoomProps } from 'react-inner-image-zoom';
import 'react-inner-image-zoom/lib/styles.min.css';

export function ImageZoom(props: InnerImageZoomProps) {
  return (
    <InnerImageZoom
      zoomType={'hover'}
      zoomPreload={true}
      hasSpacer={true}
      {...props}
    />
  );
}
```
