vue-image-badge
A Vue component to add badges to images
Table of Contents
Installation
npm install -S vue-image-badge
Usage
In your HTML
To use it globally
Vue;
or only in a single component
name: 'myapp'components:'badge': VueImageBadge
Note, if you are using web-pack, you should specify the image url using require
, e.g.
name: 'app'components:'badge': VueImageBadge{returnimageSrc:}
Props
Property | Type | Default | Description |
---|---|---|---|
imagesrc | string | path to image | |
text | string | text to display in badge | |
imageClass | string | class for the the img tag |
License
This project is licensed under the MIT License - see the LICENSE.md file for details.