Simple and easy to use react snippets.
npm i mkz-react-snippets
Name | Description | Note |
---|---|---|
FollowZoomImage | Applies Follow Zoom | Applies on div element |
Important notes of using this component:
-
div
component. - Needs to be controlled by a stylesheet.
-
class_name
is the class mentioned in the styleSheet - CSS Module className is allowed.
import React from 'react';
import { FollowZoomImage } from 'mkz-react-snippets';
import './MyStyle.css';
import image from './src/img/myImage.png';
export const MyAwesomeComponent = () => {
return <FollowZoomImage class_name={'myClass'} imagePath={image} />
}