Packages
vue-open-icon
vue-open-icon gives Vue apps two icon component entrypoints on top of the shared Open Icon catalog.
Install
npm install vue-open-icon vue
Use it when
- you want
<Icon :name="Icons.UI_SEARCH_M" />in Vue projects - you want the default client path to load icons lazily
- you want an explicit static/SSR component when markup must be synchronous
What it exports
Iconand the default export fromvue-open-iconStaticIconfromvue-open-icon/staticIconsand sharedopen-iconhelpers/types
Client/runtime usage
<script setup lang="ts">
import { Icon, Icons } from 'vue-open-icon';
</script>
<template>
<Icon :name="Icons.UI_SEARCH_M" />
<Icon :name="Icons.WAYFINDING_CHECK_IN" title="Check in" class="app-icon" />
</template>
The root Icon component uses open-icon/runtime, so it loads just the icon it needs.
Static and SSR usage
<script setup lang="ts">
import { StaticIcon, Icons } from 'vue-open-icon/static';
</script>
<template>
<StaticIcon :name="Icons.UI_SEARCH_M" />
</template>
Use vue-open-icon/static when you want synchronous SVG markup during static generation or SSR.
Pair it with
open-iconwhen you also want the base catalog package directlyopen-icon-svgif you also need raw SVG asset importsvite-plugin-open-iconin Vite apps that import package SVG files directly