In short, the Input label should accept either the usual label prop or also a slot named label, so we can use markup inside the label.
<Input type="switch" bind:checked={doomed}>
<svelte:fragment slot="label">
I agree with the <a href="/boring-terms">Terms & Conditions</a> without reading them
</svelte:fragment>
</Input>
Also, to avoid spamming the repo with issues: <Label check/> yields class="form-label form-label-check", where the first class is unnecessary and creates extra bottom-margin.
In short, the
Input
label should accept either the usuallabel
prop or also a slot namedlabel
, so we can use markup inside the label.Also, to avoid spamming the repo with issues:
<Label check/>
yieldsclass="form-label form-label-check"
, where the first class is unnecessary and creates extra bottom-margin.