New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@spruce-hub/icons

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spruce-hub/icons

图标库

latest
Source
npmnpm
Version
1.6.0
Version published
Maintainers
3
Created
Source

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>

Keywords

Spruce Hub

FAQs

Package last updated on 16 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts