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/runtime/samples/component-slot-attribute-order/main.svelte

15 lines
321 B

<script>
import Component from './Component.svelte';
let disabled = false;
</script>
<button on:click={() => disabled = !disabled}>Disable</button>
<Component>
<button slot="footer" disabled={disabled}>Button</button>
</Component>
<Component>
<button disabled={disabled} slot="footer">Button</button>
</Component>