svelte html if code example
Example: svelte if in html attribute
<label class="checkbox" disabled={disabled || undefined}>
<input type="checkbox" {disabled} />
<slot></slot>
</label>
<label class="checkbox" disabled={disabled || undefined}>
<input type="checkbox" {disabled} />
<slot></slot>
</label>