<script>
  export let tag = "div";
  export let text = "Foo";
</script>

<svelte:element this={tag}>{text}</svelte:element>