JSPM

heroicons-lookup-vue

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q15908F
  • License ISC

This package makes it possible to look up Vue components from @heroicons/vue by name and size.

Package Exports

  • heroicons-lookup-vue
  • heroicons-lookup-vue/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (heroicons-lookup-vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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>