DocsFrameworksVue and Nuxt
Vue and Nuxt
Vue 3. One component.
<script setup>
import 'fidgicons/css';
import { ref } from 'vue';
import { Fidgicon } from 'fidgicons/vue';
import battery from 'fidgicons/icons/battery.js';
const level = ref(62);
</script>
<template>
<Fidgicon :icon="battery" :value="level / 100" class="fidg-mono" />
</template>#Nuxt
export default defineNuxtConfig({
css: ['fidgicons/css'],
});class and style fall through to the <svg> and merge with the icon's own. Paid icons: npx fidgicons add <names> --js, then import the module it writes.
Something missing or unclear?Write to usRequest an icon