This is a Svelte action that replaces emoji in text with images from Twemoji
npm install twemoji-svelte-action
<script>
import twemoji from 'twemoji-svelte-action'
</script>
<div use:twemoji>🚀</div>
You can pass an object with options to the action.
<script>
import twemoji from 'twemoji-svelte-action'
const options = {
folder: 'svg',
ext: '.svg'
}
</script>
<div use:twemoji={options}>🚀</div>
Check more available options in the Twemoji documentation