@spruce-hub/icons
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

Spruce Icons

Icon library with not many icons

Usage

pnpm add @spruce-hub/icons -P

Quick start

Full Import

// main.ts
import { createApp } from 'vue'
import App from './App.vue'

import icons from '@spruce-hub/icons'

createApp(App).use(icons).mount('#app')
<template>
  <YIcon>
    <AliPay />
  </YIcon>
</template>

Volar support

// tsconfig.json
{
  "compilerOptions": {
    // ...
    "types": ["@spruce-hub/icons/global"]
  }
}

On-demand Import

<script setup lang="ts">
  import { YIcon, AliPay } from '@spruce-hub/icons'
</script>

<template>
  <YIcon>
    <AliPay />
  </YIcon>
</template>

Readme

Keywords

Package Sidebar

Install

npm i @spruce-hub/icons

Weekly Downloads

1

Version

1.6.0

License

MIT

Unpacked Size

851 kB

Total Files

330

Last publish

Collaborators

  • zzl821
  • z812032622
  • wenzheng-yi