Skip to content

[Feature Request]: A way to get the types for the provided icon collections #18

Closed
@AbdallahAlhaddad

Description

I think it would be very helpful if we can import the types of available icons to use to build a wrapper component which contains more logic to it.

<script setup lang="ts">
const props = defineProps<{
  /**
   * Available `Iconify` icons
   */
  name: string // 👈 Need a type to get autocomplete for provided collections icon names
   
   //.....
}>()

</script>
<template>
  <span :class="name"></span>
</template>

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions