Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

svelte if in html attribute

<label class="checkbox" disabled={disabled || undefined}>
  <input type="checkbox" {disabled} />
  <slot></slot>
</label>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #svelte #html #attribute
ADD COMMENT
Topic
Name
8+5 =