Skip to content

Commit

Permalink
feat: unplugin-icons demo
Browse files Browse the repository at this point in the history
  • Loading branch information
justorez committed Feb 13, 2024
1 parent a8aa8ca commit 285d6c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const entrances = routes
role="button"
class="btn btn-outline"
>
<i-mdi:link-variant />
{{ entry.text }}
</RouterLink>
</div>
Expand Down
1 change: 1 addition & 0 deletions types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
HelloWorld: typeof import('./../src/components/HelloWorld.vue')['default']
'IMdi:linkVariant': typeof import('~icons/mdi/link-variant')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default defineConfig({
resolvers: [IconsResolver()]
}),

// https://npmmirror.com/package/unplugin-icons
// https://npmmirror.com/package/unplugin-icons#h-auto-importing
// https://icones.js.org
Icons({
compiler: 'vue3',
Expand Down

0 comments on commit 285d6c9

Please sign in to comment.