OverlayBadge is a simple minimal lightweight badge component for Vue.js 2.x
NPM: npm install --save @the_aceix/overlay-badge
Yarn: yarn add @the_aceix/overlay-badge
- type (String) - type of badge (conforms to Bootstrap). Possible values are
primary
|secondary
|success
|info
|warning
|danger
- count (Number | String) - the value to be displayed in badge - default
0
- position (String) - defines the corner the badge will show (possible values are
top-right
|top-left
|bottom-right
|bottom-left
) - defaulttop-right
- onClick (Function) - the callback to be fired when the badge is clicked - default
undefined
- default - component or element which the badge will show on
- float - the badge
Project is open to suggestions. To contribute:
- Fork the repo
- Edit source
- Raise an issue, linking to your repo
MIT