From 7ca1694c17a7a8d636a3f0d425bcc0261a25bccb Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Tue, 27 Feb 2024 14:08:06 -0500 Subject: [PATCH] Button --- src/lib/components/common/Button.svelte | 64 +++++++++++++++++++ .../common/stories/Button.stories.svelte | 49 ++++++++++++++ .../{ => common}/stories/KV.stories.svelte | 2 +- 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 src/lib/components/common/Button.svelte create mode 100644 src/lib/components/common/stories/Button.stories.svelte rename src/lib/components/{ => common}/stories/KV.stories.svelte (93%) diff --git a/src/lib/components/common/Button.svelte b/src/lib/components/common/Button.svelte new file mode 100644 index 000000000..ea9b7df56 --- /dev/null +++ b/src/lib/components/common/Button.svelte @@ -0,0 +1,64 @@ + + +{#if href} + + {label} + +{:else} + +{/if} + + diff --git a/src/lib/components/common/stories/Button.stories.svelte b/src/lib/components/common/stories/Button.stories.svelte new file mode 100644 index 000000000..4c3a754fc --- /dev/null +++ b/src/lib/components/common/stories/Button.stories.svelte @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/lib/components/stories/KV.stories.svelte b/src/lib/components/common/stories/KV.stories.svelte similarity index 93% rename from src/lib/components/stories/KV.stories.svelte rename to src/lib/components/common/stories/KV.stories.svelte index 94c6bf5fe..ef9a2f6a1 100644 --- a/src/lib/components/stories/KV.stories.svelte +++ b/src/lib/components/common/stories/KV.stories.svelte @@ -1,6 +1,6 @@