I have a laravel component
<x-link :href="{{ $href }}">
some text
</x-link>
If I don't pass $href prop I want to print span tag instead, without duplicating code, but on tag directly.
Something like this that exists in Vue.js would be nice:
<component :is="href ? 'a' : 'span'">
some text
</component>