diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:07:40 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:11:30 +0100 |
| commit | 4bc2c40e5f139e8b2ff29c8abffec79798c96c7b (patch) | |
| tree | 17683784d7d2688c43f1c77bf1dcc5d00d2e072b | |
| parent | 9d8742e9b40047c0b6b8d386382e1136c31a3065 (diff) | |
Defines Link component
| -rw-r--r-- | src/components/Link.astro | 9 |
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> |
