mkz-react-snippets
v1.0.5
Published
Simple and easy to use react snippets
Downloads
3
Readme
mkz-react-snippets
Simple and easy to use react snippets.
Installation
npm i mkz-react-snippetsComponents
| Name | Description | Note |
| --------------- | ------------------- | ------------------------ |
| FollowZoomImage | Applies Follow Zoom | Applies on div element |
Usage
FollowZoomImage
Important notes of using this component:
divcomponent.- Needs to be controlled by a stylesheet.
class_nameis 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} />
}