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

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