You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/validator/samples/a11y-label-has-associated-c.../input.svelte

13 lines
327 B

<script>
import LabelComponent from './label.svelte'
</script>
<label>A</label>
<label for="id">B</label>
<label>C <input type="text" /></label>
<label>D <button>D</button></label>
<label>E <span></span></label>
<label>F {#if true}<input type="text" />{/if}</label>
<LabelComponent>G <input type="text" /></LabelComponent>