16 lines
282 B
Svelte
16 lines
282 B
Svelte
|
<script lang="ts">
|
||
|
export let id: string;
|
||
|
export let value: string;
|
||
|
|
||
|
const handleClick = () => {
|
||
|
value = "";
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<button {id} class="letterInput" on:click={handleClick}>+</button>
|
||
|
|
||
|
<style>
|
||
|
.letterInput {
|
||
|
padding-left: 1ch;
|
||
|
}
|
||
|
</style>
|