svelte-twemojify
v2.1.1
Published
An updated, simple Svelte wrapper for twemoji.
Maintainers
Readme
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-twemojifyCredits
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.
