Skip to content

image-component/vue-image-shadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌈 vue-image-shadow

A Vue image component. Simple realization of image shadow.

npm test-ci

πŸ“š Example

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

πŸŒ€ Template

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

πŸ“¦ 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 Version
alt The alt of the image. string βœ– - 1.1.0
className Component extra class. string βœ– - 1.0.0
shadowBlur The shadow blur of the image. number βœ– 20 1.0.0
shadowHover Whether to support the mouse hover. boolean βœ– false 1.0.0
shadowRadius The border radius of the image. number βœ– 8 1.0.0
src The src of the image. string βœ” - 1.0.0
width The width of the image. number βœ– 300 1.0.0

πŸ”¨ Development

yarn
yarn start

License

MIT