🎨 3 Beautiful Styles - Choose from corners, ribbons, or trapezium designs
🎯 Flexible Positioning - Place anywhere on your page (left/right, top/bottom)
🌈 Full Customization - Custom colors, content, and styling
⚡ Vue 3 Ready - Built with modern Vue 3 and TypeScript
📱 Responsive - Works perfectly on all screen sizes
🚀 Zero Dependencies - Lightweight and fast
# npm
npm install @simon_he/git-fork-vue
# yarn
yarn add @simon_he/git-fork-vue
# pnpm
pnpm add @simon_he/git-fork-vue
<script setup>
import GitForkVue from '@simon_he/git-fork-vue'
</script>
<template>
<!-- Basic usage -->
<GitForkVue link="https://github.com/Simon-He95/git-fork-vue" />
<!-- Customized ribbon style -->
<GitForkVue
link="https://github.com/Simon-He95/git-fork-vue"
type="ribbons"
position="left"
content="Fork Me!"
color="#ff6b6b"
/>
<!-- Corner style with custom positioning -->
<GitForkVue
link="https://github.com/Simon-He95/git-fork-vue"
type="corners"
position="right"
top="100px"
/>
</template>
Property | Type | Default | Description |
---|---|---|---|
link |
string |
Required | GitHub repository URL |
type |
'corners' | 'ribbons' | 'trapeziumType' |
'corners' |
Badge style type |
position |
'left' | 'right' |
'right' |
Badge position |
content |
string |
'Fork me on GitHub' |
Display text |
color |
string |
'#24292e' |
Background color |
top |
string |
- | Custom top positioning |
bottom |
string |
- | Custom bottom positioning |
Perfect for a subtle, elegant look that doesn't interfere with your content.
Eye-catching ribbons that add a playful touch to your website.
Modern geometric design for contemporary applications.
This project was inspired by these awesome libraries:
- github-corners - Elegant corner badges
- github-ribbons - Classic ribbon designs
# Clone the repository
git clone https://github.com/Simon-He95/git-fork-vue.git
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build the library
pnpm build
# Run tests
pnpm test
Package | Description |
---|---|
@simon_he/git-fork-vue | Vue 3 version |
@simon_he/git-fork-react | React version |
If this project helped you, consider buying me a coffee!
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Made with ❤️ by Simon He