1.1.3 • Published 3 years ago

react-image-shadow v1.1.3

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

🌈 react-image-shadow

A React image component. Simple realization of image shadow.

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

📚 Example

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

🌀 Template

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

📦 Install

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

🎉 Usage

import ImageShadow from 'react-image-shadow';
import 'react-image-shadow/assets/index.css';

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

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

📔 API

PropertyDescriptionTypeRequiredDefaultVersion
altThe alt of the image.string-1.1.0
classNameComponent extra class.string-1.0.0
shadowBlurThe shadow blur of the image.number201.0.0
shadowHoverWhether to support the mouse hover.booleanfalse1.0.0
shadowRadiusThe border radius of the image.number81.0.0
srcThe src of the image.string-1.0.0
styleComponent extra style.CSSProperties-1.0.0
widthThe width of the image.number3001.0.0

🔨 Development

yarn
yarn start

License

MIT

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago