<script> import Foo from './Foo.html'; import Bar from './Bar.html'; export let x; </script> <svelte:component this="{ x ? Foo : Bar }" x='{x}'/>