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/spread-component-dynamic-no.../main.svelte

14 lines
218 B

<script>
import Widget from './Widget.svelte';
export let props;
export let corge = false;
export let a = 'a';
export let b = 'b';
</script>
<div>
<Widget corge={corge ? a : b} {...props} qux="named"/>
</div>