@goil/badge
v1.1.0
Published
Lightweight 'Made with Goil' badge for static sites, React and Next.js
Downloads
492
Readme
@goil/badge
Lightweight "Made with Goil" badge widget. Works in any HTML page, React or Next.js.
Install
npm i @goil/badgeQuick start
React / Next.js:
import { GoilBadge } from '@goil/badge/react'
export default function Layout() {
return <GoilBadge />
}Defaults to fixed bottom-right (z-index 9999). Marked 'use client', so it works directly inside a Next.js server layout.
HTML / static site:
<script src="https://goil-composer.s3.eu-west-3.amazonaws.com/badge/latest/goil-badge.iife.min.js"></script>API
interface GoilBadgeProps {
variant?: 'dark' | 'light' | 'auto' // default: 'auto' — follows prefers-color-scheme
lang?: 'en' | 'es' | 'ca' | 'auto' // default: 'auto' — reads navigator.language
position?: // default: 'bottom-right' (fixed). Use 'inline' to render in flow.
| 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'inline'
zIndex?: number // default: 9999
}Full documentation, integration patterns, screenshots and release process live in DOCS.md in the repository.
License
MIT © Goil
