Skip to content

Commit

Permalink
feat(icon): add autocomplete on aliases on component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jan 25, 2023
1 parent e069696 commit 0af0aa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/Icon.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<!-- eslint-disable vue/multi-word-component-names -->
<script setup lang="ts">
import type { PropType } from 'vue'
import type { IconifyIcon } from '@iconify/vue'
import { Icon as Iconify } from '@iconify/vue/dist/offline'
import { loadIcon } from '@iconify/vue'
import { useNuxtApp, useState, ref, useAppConfig, computed, watch } from '#imports'
import type { AppConfig } from '@nuxt/schema'

const nuxtApp = useNuxtApp()
const appConfig = useAppConfig() as any
const props = defineProps({
name: {
type: String,
type: String as PropType<keyof AppConfig['nuxtIcon']['aliases'] | (string & {})>,
required: true
},
size: {
Expand Down

0 comments on commit 0af0aa6

Please sign in to comment.