feat: now label can be hidden

This commit is contained in:
Arman committed 2022-07-08 11:52:23 +02:00
1 parent 0c4a9ef73e
commit b509c2c823
1 file changed
+2 -1
+2 -1
View File
@@ -3,6 +3,7 @@
import { FormItem } from '.';
export let label: string;
export let showLabel = true;
export let id: string;
export let value = '';
export let placeholder = '';
@@ -22,7 +23,7 @@
</script>
<FormItem>
<label class="label" for={id}>{label}</label>
<label class:u-hide={!showLabel} class="label" for={id}>{label}</label>
<div class="input-text-wrapper">
<input
{id}