vue-carbonbadge
Vue component for the Website Carbon badge.
Installation
via npm
npm install vue-carbonbadge
or via yarn
yarn add vue-carbonbadge
How To Use
1. Import the package into your main.js file
import CarbonBadge from 'vue-carbonbadge'
Vue.use(CarbonBadge)
2. Use it in your HTML markup
<footer>
<CarbonBadge></CarbonBadge>
</footer>
3. You're done!
Customization
Toggling dark mode
<CarbonBadge :dark="true"></CarbonBadge>
If the dark
property is not specified, dark mode is detected as per user system preferences.