input styles

This commit is contained in:
Jan Prochazka
2021-03-04 15:52:12 +01:00
parent ef5bfb5a89
commit ce44e271ae
6 changed files with 151 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
<script lang="ts">
import { onMount } from 'svelte';
export let value;
export let focused;
let domEditor;
if (focused) onMount(() => domEditor.focus());
</script>
<input type="text" {...$$restProps} bind:value on:change />
<input type="text" {...$$restProps} bind:value on:change bind:this={domEditor} />