Craft
View Magnifier

View Magnifier

View Magnifier

Loading...

The Icon component creates customizable, interactive pixel-based icons. It supports hover effects, color changes, and pixel shape customization.

Installation

npx shadcn@latest add "https://bucharitesh.in/r/view-magnifier"

Props

PropTypeDescriptionDefault
childrenReact.ReactNodeChildren to be magnified
classNamestringAdditional classes for the container
maxScalenumberMaximum scale of the magnifier1.8
onScaleChange(isActive: boolean) => voidCallback function when the scale changes
onMaxScaleReached(isAtMax: boolean) => voidCallback function when the maximum scale is reached

Examples

Loading...