From d0975a6e7ee57de4debda94e823011d813fbf4a1 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Sun, 5 Sep 2021 21:39:24 -0500
Subject: Initial rewrite in svelte

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

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

diff --git a/src/components/FileUpload.svelte b/src/components/FileUpload.svelte
new file mode 100644
index 0000000..d325e32
--- /dev/null
+++ b/src/components/FileUpload.svelte
@@ -0,0 +1,11 @@
+<script lang="ts">
+  export let accept = "";
+  export let multiple = false;
+  export let files: FileList | null = null;
+</script>
+
+<label class="mdc-button mdc-button--raised mdc-ripple-upgraded">
+  <div class="mdc-button__ripple" />
+  <slot>Upload</slot>
+  <input type="file" {accept} {multiple} bind:files hidden />
+</label>
-- 
cgit v1.2.3

