Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
<script>
import { MobileKeyboard, Gif } from 'svelte-tenor'

let gif
</script>

<MobileKeyboard
key="LIVDSRZULELA"
autofocus={false}
on:click={({ detail }) => {
gif = detail
}}
/>

{#if gif !== undefined}
<p><Gif {gif}/></p>
<pre>{JSON.stringify(gif, null, 2)}</pre>
{:else}
<p>Click on a GIF above</p>
{/if}

<p>
<a href="https://gauben.github.io/svelte-tenor/storybook/?path=/story/keyboards-mobilekeyboard--mobilekeyboard">📓 Read more about MobileKeyboard</a>
</p>
<p>
<strong>Note:</strong> the REPL has an infinite loop guard that triggers when Tenor takes too long to respond. The storybook linked above does not have this bug.
</p>

loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */