svelte-github-corner
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

svelte-github-corner

simple little component for adding a github corner icon to your svelte projects

see it in action

install

npm install svelte-github-corner

use

  • the colors are optional, will default to black on white
<script>
	import { GithubCorner } from 'svelte-github-corner';
<\/script>

<GithubCorner
	href="https://github.com/flo-bit/svelte-github-corner"
	color="#fff"
	backgroundColor="#151513"
/>

using with tailwind

  • fill is background, text is icon
<script>
	import { GithubCorner } from 'svelte-github-corner';
<\/script>

<GithubCorner
	href="https://github.com/flo-bit/svelte-github-corner"
	class="fill-stone-900 text-stone-100 dark:fill-stone-100 dark:text-stone-900"
/>

license

MIT

credits

based on github corners by Tim Holman

Package Sidebar

Install

npm i svelte-github-corner

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.82 kB

Total Files

7

Last publish

Collaborators

  • flo-bit128