Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
svelte-github-corner
Advanced tools
Readme
npm install -D svelte-github-corner
<script>
import GitHubCorner from 'svelte-github-corner'
</script>
<!-- minimal -->
<GitHubCorner href="https://github.com/janosh/svelte-github-corner" />
<!-- kitchen sink -->
<GitHubCorner
href="https://github.com/janosh/svelte-github-corner"
title="Fancy words"
ariaLabel="Click here for riches"
target="_blank"
corner="top-left"
style="z-index: 42;"
--ghc-bg="white"
--ghc-color="var(--bodyBg)"
/>
href: string
: (required) The GitHub URL to link to.title: string = 'View code on GitHub'
: Text to display in hover tooltip.ariaLabel: string = title
: Accessible name for SVG button describing its function. See MDN. Should not be set to empty string.target: '_self' | '_blank' = '_self'
: Whether to open href
in same ('_self'
) or new tab ('_blank'
).corner: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' = 'top-right'
: Which corner of the screen to position the Octocat. 'bottom-(left|right)'
look bad, shouldn't normally be used.style: string = ''
: Inline styles that will be applied to the <a>
tag.With CSS variables:
fill: var(--ghc-bg, black);
color: var(--ghc-color, white);
width: var(--ghc-size, min(50pt, 15vw));
Can be passed as props or set in a global stylesheet.
FAQs
Display an animated Octocat in a corner of the screen to link to the GitHub repo.
The npm package svelte-github-corner receives a total of 0 weekly downloads. As such, svelte-github-corner popularity was classified as not popular.
We found that svelte-github-corner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.