1.2.2 • Published 3 years ago

react-image-follow v1.2.2

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

🌈 react-image-follow

A React image component. The image follow with the mouse.

npm dumi npm.io npm.io codecov npm.io npm.io

📚 Example

Online: https://image-component.github.io/react-image-follow/

🌀 Template

https://github.com/one-template/react-component-template

📦 Install

npm i react-image-follow
# or
yarn add react-image-follow

🎉 Usage

import Imagefollow from 'react-image-follow';
import 'react-image-follow/assets/index.css';

const src =
  'https://github.com/image-component/gallery/blob/main/girl/1.jpg?raw=true';

export default () => (
  <>
    <Imagefollow src={src} />
  </>
);

📔 API

PropertyDescriptionTypeRequiredDefaultVersion
altThe alt of the image.string-1.0.0
classNameComponent extra class.string-1.0.0
radiusThe border radius of the component.number81.0.0
srcThe src of the image.string-1.0.0
styleComponent extra style.CSSProperties-1.0.0
hrefComponent click linkstring-1.0.0

🔨 Development

yarn
yarn start

License

MIT

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago