Built-in special elements

A “meta component” for rendering dynamic
components or elements.

The actual component to render is determined by
the is prop.

<script setup>
import Foo from './Foo.vue'
import Bar from './Bar.vue'
</script>

<template>
  <component :is="Math.random() > 0.5 ? Foo : Bar" />
</template>

<component :is="href ? 'a' : 'span'"></component>