twemoji-svelte-action
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

🚀 twemoji-svelte-action

npm version

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

License: MIT

Package Sidebar

Install

npm i twemoji-svelte-action

Weekly Downloads

8

Version

1.0.5

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • israperez98