octicons-vue

Vue component for octicons-modular
2,711
Install
npm install octicons-vue
Latest Version:1.0.11
Vue:2
License:MIT
Last Updated:Jun 28, 2021
Links: npm
Maintainer: hiendv

Vue Octicons

Installation & Usage

NPM

npm install --save octicons-vue
# or with yarn
yarn add octicons-vue
A single octicon
<script>
const { Octicon, markGithub } = require('octicons-vue')
// import Octicon, { markGithub } from 'octicons-vue'

new Vue({
  el: '#app',
  components: { Octicon },
  data: {
    markGithub
  }
})
</script>
<template>
  <Octicon :icon="markGithub" />
</template>
All octicons
<script>
const { Octicon, Octicons } = require('octicons-vue')
// import Octicon, { Octicons } from 'octicons-vue'

new Vue({
  el: '#app',
  components: { Octicon },
  data: {
    Octicons
  }
})
</script>
<template>
  <Octicon :icon="Octicons.alert" />
</template>

API

Props
  • icon (object) - Octicon from octicons-modular library
  • scale (number) - Scale
    • Default: 1
  • className (string) - Additional classes
    • Default: null
  • label (string) - Label
    • Default: null
<Octicon :icon="icon" :scale="1" className="additional-class" label="another label" />

Development & Testing

Please check the Contributing Guidelines.

Contribution

Issues and PRs are welcome !

Related Packages

octicons-modular

Octicons with tree-shaking support and icon-per-file style

10,318
qingicon-mcp

MCP server for QingIcon — Chinese-aware icon search and ready-to-use React / Vue...

363 4
@64mb/gravity-ui-icons-vue

Pack of Gravity UI icons for Vue

2,046 1
@ycloud-web/icons-vue

A YCloud icon library package for Vue applications.

4,573 0
@christicons/core

Core Christicons metadata and raw SVG exports.

1,938

Version History

Version Released Vue License
1.0.11 ^2.6.14 MIT
1.0.10 ^2.6.13 MIT
1.0.7 ^2.6.12 MIT
1.0.6 ^2.6.11 MIT
1.0.5 ^2.6.11 MIT