@aurelle/svelte-twemoji
v0.1.4
Published
A simple and fully reactive Svelte component wrapping around the [twemoji library](https://twemoji.twitter.com/).
Downloads
3
Readme
svelte-twemoji
A simple and fully reactive Svelte component wrapping around the twemoji library.
Getting started
Install twemoji
The easiest way of loading twemoji is to use the provided CDN. Simply add that to the head
of your document.
If window.twemoji
exists, then you are ready to make use of this package.
Use the component
This package provides a single Twemoji
component that can be used to render any emoji as its twemoji counterpart.
<script lang="ts">
import { Twemoji } from '@aurelle/svelte-twemoji'
</script>
<Twemoji emoji={'👌'} size={30} />