summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2023-02-03 10:37:00 +0100
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-02-03 10:37:00 +0100
commit795c66f4c9b1c9140df1afaba5d62e136b19740a (patch)
tree9159625e02276e619b84e164b3d8088013f794e6 /src
parentd337857d951c9bba6a19fb3fe5f3a7cf5cd9da67 (diff)
downloadwordle-frontend-795c66f4c9b1c9140df1afaba5d62e136b19740a.tar.xz
fetch @click
Diffstat (limited to 'src')
-rw-r--r--src/components/KeyboardKey.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/KeyboardKey.vue b/src/components/KeyboardKey.vue
index 213db96..1deb0ca 100644
--- a/src/components/KeyboardKey.vue
+++ b/src/components/KeyboardKey.vue
@@ -1,7 +1,13 @@
-<template>{{ letter }}</template>
+<template>
+ <button @click="pressButton()">{{ letter }}</button>
+</template>
<script setup lang="ts">
-defineProps<{
+function pressButton() {
+ console.log("button " + props.letter + " pressed");
+}
+
+let props = defineProps<{
letter: string;
}>();
</script>