summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/lib/components/AddButton.svelte
diff options
context:
space:
mode:
authorWolfgang Müller2025-02-13 17:52:16 +0100
committerWolfgang Müller2025-02-13 17:52:16 +0100
commitdc4db405d2991d3ec6a114f3b08d3fccd057d3ee (patch)
tree2c620c9af2062ba09fa591f8b3ed961664adab58 /frontend/src/lib/components/AddButton.svelte
parent4df870d793123be95c8af031a340a39b5b8402ac (diff)
downloadhircine-dc4db405d2991d3ec6a114f3b08d3fccd057d3ee.tar.gz
frontend: Migrate to Svelte 5
Diffstat (limited to 'frontend/src/lib/components/AddButton.svelte')
-rw-r--r--frontend/src/lib/components/AddButton.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/lib/components/AddButton.svelte b/frontend/src/lib/components/AddButton.svelte
index 9c0ab29..f07eafd 100644
--- a/frontend/src/lib/components/AddButton.svelte
+++ b/frontend/src/lib/components/AddButton.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- export let title: string;
+ let { title, onclick }: { title: string; onclick: () => void } = $props();
</script>
-<button class="btn-blue" {title} on:click>
- <span class="icon-base icon-[material-symbols--add]" />
+<button class="btn-blue" {title} aria-label={title} {onclick}>
+ <span class="icon-base icon-[material-symbols--add]"></span>
</button>