@si-components/vue
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@si-components/vue

Vue 3 component for simple-icons

Installation

npm install @si-components/vue simple-icons

simple-icons must be installed as a peer dependency.

Usage

<template>
  <!-- pass icon into component -->
  <SIIcon :icon="vueIcon" />
  <!-- extra attributes are passed to svg -->
  <SIIcon :icon="vueIcon" width="100" height="100" :color="'#' + vueIcon.hex" />
</template>

<script>
  import SIIcon from '@si-components/vue'
  // import icon from simple-icons
  import { siVuedotjs } from 'simple-icons/icons'

  export default {
    name: 'Component',
    components: {
      SIIcon,
    },
    data() {
      return {
        siVuedotjs,
      }
    },
  }
</script>

Package Sidebar

Install

npm i @si-components/vue

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.95 kB

Total Files

6

Last publish

Collaborators

  • sachinraja