@walkerrandolphsmith/react-loupe
v1.0.1
Published
React component to turn ordinary images into images with magnifyer glass overlay.
Downloads
3
Maintainers
Readme
React-Loupe :mag:
React component to turn ordinary images into images with magnifyer glass overlay.
Install
npm install @walkerandolphsmith/react-loupe
Usage
- Default
<Loupe image={'url'}></Loupe>
- Override image styles
<Loupe image={'url'} styles={{ border: '1px solid green' }}></Loupe>
- Override loupe styles
<Loupe image={'url'} loupeStyles={{ border: '1px solid green', borderRadius: '50%' }}></Loupe>
Development
###Build
npm run build
###Open storybook
npm start