Loading...
Installation
pnpm dlx @bucharitesh/cli@latest add view-magnifier
Props
Prop | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | Children to be magnified | |
className | string | Additional classes for the container | |
maxScale | number | Maximum scale of the magnifier | 1.8 |
onScaleChange | (isActive: boolean) => void | Callback function when the scale changes | |
onMaxScaleReached | (isAtMax: boolean) => void | Callback function when the maximum scale is reached |
Examples
Example 1
Loading...