Back

Image Zoom

Satu Visual ComponentNew

An image that zooms within a fixed frame on hover.

Gear
Hover to zoom

Installation

Add it with the CLI:

Terminal

$

Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.

Usage

Set the frame size on the wrapper via className. Optional caption slides up on hover.

Props

PropTypeDefaultDescription
srcstringImage URL.
altstringAlt text.
captionstringCaption revealed on hover.
classNamestringFrame classes (set size here).