vue-carbonbadge
Vue component for the Website Carbon badge.
Installation
via npm
npm install vue-carbonbadgeor via yarn
yarn add vue-carbonbadgeHow 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.