From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- code/app/src/lib/components/input.svelte | 103 +++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 code/app/src/lib/components/input.svelte (limited to 'code/app/src/lib/components/input.svelte') diff --git a/code/app/src/lib/components/input.svelte b/code/app/src/lib/components/input.svelte new file mode 100644 index 0000000..c0ed654 --- /dev/null +++ b/code/app/src/lib/components/input.svelte @@ -0,0 +1,103 @@ + + +
+ {#if label && !cornerHint && !hideLabel} + + {:else if cornerHint && !hideLabel} +
+ {#if label} + + {/if} + + {cornerHint} + +
+ {/if} +
+ {#if icon} +
+ +
+ {:else if addon} +
+ {addon} +
+ {/if} + + {#if errorText} +
+ +
+ {/if} +
+ {#if helpText && !errorText} +

+ {helpText} +

+ {/if} + {#if errorText} +

+ {errorText} +

+ {/if} +
-- cgit v1.3