From 7c3f87079bb5a483c05ecc61176635791d4ae424 Mon Sep 17 00:00:00 2001 From: haraldnilsen Date: Tue, 12 Dec 2023 19:38:41 +0100 Subject: [PATCH] :sparkles: new components for radio and select Co-authored-by: Sindre Kjelsrud --- .../components/userform/UserFormInput.svelte | 17 +++++++++++++++++ .../userform/inputs/RadioButtons.svelte | 12 ++++++++++++ .../components/userform/inputs/Select.svelte | 9 +++++++++ 3 files changed, 38 insertions(+) create mode 100644 frontend/src/components/userform/UserFormInput.svelte create mode 100644 frontend/src/components/userform/inputs/RadioButtons.svelte create mode 100644 frontend/src/components/userform/inputs/Select.svelte diff --git a/frontend/src/components/userform/UserFormInput.svelte b/frontend/src/components/userform/UserFormInput.svelte new file mode 100644 index 0000000..91a1276 --- /dev/null +++ b/frontend/src/components/userform/UserFormInput.svelte @@ -0,0 +1,17 @@ + + +
+

{label}:

+ {#if inputType == "radio"} + + {/if} + {#if inputType == "select"} + + {#each options as data, index (data)} + + {/each} +