๐ vue-image-shadow
A Vue image component. Simple realization of image shadow.
๐ Example
Online: https://image-tool.github.io/vue-image-shadow/
๐ฆ Install
npm i vue-image-shadow
# or
yarn add vue-image-shadow
๐ Usage
// main.js
import ImageShadow from 'vue-image-shadow'
Vue.component('image-shadow', ImageShadow)
๐ API
Property | Description | Type | Required | Default |
---|---|---|---|---|
className | Component extra class. | string | - | |
shadowBlur | The shadow blur of the image. | number | 20 | |
shadowHover | Whether to support the mouse hover. | boolean | false | |
shadowRadius | The border radius of the image. | number | 8 | |
src | The src of the image. | string | - | |
width | The width of the image. | number | 300 |
๐จ Development
yarn
yarn start