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

v-github-icon

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-github-icon

Vue + GitHub Icon ❤️

latest
Source
npmnpm
Version
3.3.0
Version published
Maintainers
1
Created
Source

v-github-icon :octocat:

GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub release (latest SemVer) npm DeepScan grade Snyk Vulnerabilities for GitHub Repo Netlify GitHub contributors npm type definitions npm npm npm bundle size (version)

built using janak vue vite eslint prettier typescript

⚠️ Docs are for Vue 3, for Vue 2 docs, check this tree

Features

  • GitHub corners made easy!
  • Built from scratch usign Vue 3
  • For Vue 3.x version – npm i v-github-icon
  • For Vue 2.x version – npm i v-github-icon@1 && npm i -D @vue/composition-api

Table of Contents

Demo

Edit v-github-icon

Requirements

Installation

npm install --save v-github-icon

CDN: UNPKG | jsDelivr

Build Setup

# install dependencies
$ npm install

# package the library
$ npm run build

Usage

Register the component globally:

// main.ts
import { VGithubIcon } from 'v-github-icon';
import { createApp } from 'vue';

const app = createApp({});
app.component('VGithubIcon', VGithubIcon);

Or use locally

import { VGithubIcon } from 'v-github-icon';

Nuxt

For Nuxt 3, create a file in plugins/v-github-icon.ts

import { VGithubIcon } from 'v-github-icon';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component('VGithubIcon', VGithubIcon);

then import the file in nuxt.config.{j|t}s:

export default {
  // ...
  plugins: [
    // ...
    { src: '~/plugins/v-github-icon', mode: 'client' },
    // ...
  ],
  // ...
};
Example 1 (refer App.vue)

HTML

<v-github-icon
  :position="position"
  :url="url"
  :bg-color="bgColor"
  :fill-color="fillColor"
/>

JS

<script lang="ts">
  import { defineComponent, ref } from 'vue';
  import { VGithubIcon } from 'v-github-icon';

  export default defineComponent({
    components: {
      VGithubIcon,
    },
    setup() {
      const state = ref({
        position: 'top-left',
        url: 'https://github.com/vinayakkulkarni/v-github-icon',
        bgColor: '#FFF',
        fillColor: '#111',
      });

      return {
        state,
      };
    },
  });
</script>
Example 2 (minimal)

HTML

<v-github-icon url="https://github.com/vinayakkulkarni/v-github-icon" />

JS

<script lang="ts">
  import { defineComponent } from 'vue';
  import { VGithubIcon } from 'v-github-icon';

  export default defineComponent({
    name: 'App',
    components: {
      VGithubIcon,
    },
  });
</script>

API

Props

NameTypeRequired?Description
urlStringYesThe URL link to GitHub project repository
positionStringNoPosition of the icon, 'top-left' or 'top-right'
bg-colorStringNoColor of the octocat
fill-colorStringNoColor excluding the octocat

Built with

Contributing

Note:

Author

v-github-icon © Vinayak, Released under the MIT License.
Authored and maintained by Vinayak Kulkarni with help from contributors (list).

vinayakkulkarni.dev · GitHub @vinayakkulkarni · Twitter @_vinayak_k

Keywords

GitHub Icon

FAQs

Package last updated on 09 Feb 2026

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