summaryrefslogtreecommitdiff
path: root/src/components/Button.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-31 10:28:09 +0100
committerGitHub <noreply@github.com>2023-08-31 10:28:09 +0100
commit244fda8c63356bfcc19a0ea437edf36458e4bc9b (patch)
treea54fe436f4d71cd9d735f34b4f7b8829b1af4456 /src/components/Button.astro
parent73bbbe8307f9474e751236a44db2dcc6924c5035 (diff)
parent5bfb00f6cdbb369d834dbe27d213d80a821f8036 (diff)
Merge pull request #4 from Sycamost/dev
Changes site to scotsleidassocie.org
Diffstat (limited to 'src/components/Button.astro')
-rw-r--r--src/components/Button.astro10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/components/Button.astro b/src/components/Button.astro
index 9cc3885..20b6087 100644
--- a/src/components/Button.astro
+++ b/src/components/Button.astro
@@ -1,17 +1,13 @@
---
-import type Digit from '$types/Digit';
-
-type LayoutClasses = `grid-span-${Digit}${'' | ' grid-end' | ' grid-prose-end'}`;
-
interface Props {
href: string;
- layoutClasses: LayoutClasses;
+ classNames: string;
}
-const { href, layoutClasses } = Astro.props;
+const { href, classNames } = Astro.props;
---
-<a class={`btn ${layoutClasses}`} href={href}>
+<a class={`btn ${classNames}`} href={href}>
<p>
<slot />
</p>