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/switch.svelte | 143 ++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 code/app/src/lib/components/switch.svelte (limited to 'code/app/src/lib/components/switch.svelte') diff --git a/code/app/src/lib/components/switch.svelte b/code/app/src/lib/components/switch.svelte new file mode 100644 index 0000000..16da23a --- /dev/null +++ b/code/app/src/lib/components/switch.svelte @@ -0,0 +1,143 @@ + + + + +
+ {#if hasLabelOrDescription && !rightAlignedLabelDescription} + + {#if label} + {label} + {/if} + {#if description} + {description} + {/if} + + {/if} + {#if type === "short"} + + {:else if type === "icon"} + + {:else if type === "default"} + + {/if} + {#if hasLabelOrDescription && rightAlignedLabelDescription} + + {#if label} + {label} + {/if} + {#if description} + {description} + {/if} + + {/if} +
-- cgit v1.3