summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Link.astro9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/Link.astro b/src/components/Link.astro
new file mode 100644
index 0000000..365441e
--- /dev/null
+++ b/src/components/Link.astro
@@ -0,0 +1,9 @@
+---
+interface Props {
+ href: string;
+}
+
+const { href } = Astro.props;
+---
+
+<a class="link" href={href}><slot /></a>