`<slot>` should have a shorthand syntax that mirrors `<template>`'s shorthand
What problem does this feature solve?
It's a more intuitive syntax to use named scoped <slot>
by unifying the slotProps-binding syntax between <template>
and <slot>
Shorthand for template:
<template #text="{ str }"><p>{{ str }}</p></template>
Shorthand for slot:
<slot #text="{ str: 'Hello' }" />
What does the proposed API look like?
Before:
<slot name="text" :str="'Hello'" />
After:
<slot #text="{ str: 'Hello' }" />