mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Share styles and update props
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from "svelte";
|
||||
|
||||
const { children, id, text } = $props<{ children: Snippet; id: string; text: string }>();
|
||||
const { children, id, text }: { children: Snippet; id: string; text: string } = $props();
|
||||
</script>
|
||||
|
||||
<a href={`#${id}`} role="button">{text}</a>
|
||||
|
||||
Reference in New Issue
Block a user