heroicons-lookup-vue
v1.0.1
Published
This package makes it possible to look up Vue components from @heroicons/vue by name and size.
Downloads
6
Maintainers
Readme
heroicons-lookup-vue
A TypeScript-typed utility you can use to lookup Heroicons Vue components by name.
Installation
$ npm install heroicons-lookup-vue
Usage
<template>
<component :is="getHeroicon('outline24', 'PlusIcon')" class="h-5 w-5" />
<component :is="getHeroicon('solid24', 'PlusIcon')" class="h-5 w-5" />
<component :is="getHeroicon('solid20', 'PlusIcon')" class="h-5 w-5" />
<component :is="getHeroicon('solid16', 'PlusIcon')" class="h-5 w-5" />
</template>
<script lang="ts" setup>
import { getHeroicon } from 'heroicons-lookup-vue'
</script>