summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-14 21:07:40 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-14 21:11:30 +0100
commit4bc2c40e5f139e8b2ff29c8abffec79798c96c7b (patch)
tree17683784d7d2688c43f1c77bf1dcc5d00d2e072b /src
parent9d8742e9b40047c0b6b8d386382e1136c31a3065 (diff)
Defines Link component
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>