blob: 0e8f4a7ce58914c37f49b0c941f436e3a4f007bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!--
@component
All the emojis inside this component will be turned into Twemojis.
-->
<script lang="ts">
import { twemojiHtml } from './utils'
export let value: string
</script>
<span>
{@html twemojiHtml(value)}
</span>
<style>
:global(.emoji) {
position: relative;
/* we specify the width so it doesn't change size when the image shows up */
width: 1em;
height: 1em;
vertical-align: text-bottom;
bottom: 0.1em;
}
</style>
|