Skip to content

😎 An updated, simple Svelte wrapper for twemoji. You can just drop the `twemojify` action into your component and all emojis will become consistent across all platforms.

License

Notifications You must be signed in to change notification settings

szalovszky/svelte-twemojify

Repository files navigation

svelte-twemojify

An updated, simple Svelte wrapper for twemoji. You can just drop the twemojify action into your component and all emojis will become consistent across all platforms.

Usage

Basic Usage

<script>
  import { twemojify } from 'svelte-twemojify';
</script>

<p use:twemojify>
  This emoji will be transformed into an image: ✨.
</p>

Advanced Usage

You can also specify how twemoji will process the contents using a configuration object or a callback function.

Check out the options documentation for more details.

<script>
  import { twemojify } from 'svelte-twemojify';
</script>

<p use:twemojify={{ className: 'twemojify-emoji' }}>
  This emoji will be transformed into an image: ✨.
</p>

For additional tips and best practices, take a look here.

Installation

npm install svelte-twemojify

Credits

License

svelte-twemojify is licensed under the MIT license - see the LICENSE file for details.

Support and Contributions

For bug reports, feature requests, or contributions, please open an issue or submit a pull request on the GitHub repository.

About

😎 An updated, simple Svelte wrapper for twemoji. You can just drop the `twemojify` action into your component and all emojis will become consistent across all platforms.

Topics

Resources

License

Stars

Watchers

Forks