🚀 twemoji-svelte-action

This is a Svelte action that replaces emoji in text with images from Twemoji

Installation

npm install twemoji-svelte-action

Usage

<script>
  import twemoji from 'twemoji-svelte-action'
</script>

<div use:twemoji>🚀</div>

Options

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

License

The MIT License

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes