summaryrefslogtreecommitdiff
path: root/src/components/KeyboardKey.vue
blob: 1deb0cac88f70f9fa6ccb8c2ad9647a85d20cf3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
  <button @click="pressButton()">{{ letter }}</button>
</template>

<script setup lang="ts">
function pressButton() {
  console.log("button " + props.letter + " pressed");
}

let props = defineProps<{
  letter: string;
}>();
</script>

<style scoped></style>