Skip to content

Commit

Permalink
Allows use of html in label, or alternately overwriting it entirely. F…
Browse files Browse the repository at this point in the history
…ixes #1092.
  • Loading branch information
kryptus36 committed Sep 30, 2023
1 parent 8d3077d commit dc5a76b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/forms/FloatingLabelInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
<input {id} {...$$restProps} bind:value on:blur on:change on:click on:focus on:input on:keydown on:keypress on:keyup on:mouseenter on:mouseleave on:mouseover on:paste {...{ type }} placeholder=" " class={twMerge(inputClasses[style], inputColorClasses[color], inputSizes[style][size], $$props.classInput)} />

<label for={id} class={twMerge(labelClasses[style], labelColorClasses[color], labelSizes[style][size], $$props.classLabel)}>
{label}
<slot name='label'>
{@html label}
</slot>
</label>
</div>

Expand Down

0 comments on commit dc5a76b

Please sign in to comment.