From 847b3846fa4d354c513a13458b21378cff4a479f Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Fri, 3 Jun 2022 19:34:33 -0500
Subject: Reusable Card and Upload button, FileUpload page done for now

---
 src/components/UploadButton.svelte | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/components/UploadButton.svelte

(limited to 'src/components/UploadButton.svelte')

diff --git a/src/components/UploadButton.svelte b/src/components/UploadButton.svelte
new file mode 100644
index 0000000..a592a25
--- /dev/null
+++ b/src/components/UploadButton.svelte
@@ -0,0 +1,11 @@
+<script lang="ts">
+  export let accept = "";
+  export let multiple = false;
+  export let files: FileList | null = null;
+  export let color = "";
+</script>
+
+<label class="btn {color}">
+  Upload
+  <input type="file" {accept} {multiple} bind:files hidden />
+</label>
-- 
cgit v1.2.3

