I imported an icon like this:
import XIcon from '@vue-hero-icons/solid';
and added to components.
Then I tried to use the icon in a template like this:
<XIcon class="h-6 w-6 text-lg border-2 blue border-blue-300 text-indigo-600 bg-green-300" />
The border and background show up, but the icon is missing/invisible. Any help would be much appreciated.
Second Note:
I put this into my type declarations file, but not sure if it's right:
declare module "@vue-hero-icons/outline" declare module "@vue-hero-icons/solid"
Note: Vue3 (w/composition API), TypeScript
I imported an icon like this:
import XIcon from '@vue-hero-icons/solid';
and added to components.Then I tried to use the icon in a template like this:
<XIcon class="h-6 w-6 text-lg border-2 blue border-blue-300 text-indigo-600 bg-green-300" />
The border and background show up, but the icon is missing/invisible. Any help would be much appreciated.
Second Note: I put this into my type declarations file, but not sure if it's right:
declare module "@vue-hero-icons/outline" declare module "@vue-hero-icons/solid"