From fbc58df578544d30ba68b6bc11bfcdfeceed50ab Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 20 Aug 2023 07:36:48 +0100 Subject: Defines Button component --- src/components/Button.astro | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/Button.astro diff --git a/src/components/Button.astro b/src/components/Button.astro new file mode 100644 index 0000000..757eac2 --- /dev/null +++ b/src/components/Button.astro @@ -0,0 +1,18 @@ +--- +import type Digit from '$types/Digit'; + +type LayoutClasses = `grid-span-${Digit}` | `grid-span-${Digit} grid-end`; + +interface Props { + href: string; + layoutClasses: LayoutClasses; +} + +const { href, layoutClasses } = Astro.props; +--- + + +

+ +

+
-- cgit v1.2.3