svelte if in html attribute 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>