ui:asChild
View as MarkdownMarks the tag of your component whose attributes pass to the caller's element when the caller sets asChild="{true}".
Add it inline inside the opening bracket of that tag, like {ui:ref(...)} and {ui:attributes()}. It also gives the component its asChild prop:
<button
{ui:ref(name: 'trigger')}
{ui:attributes()}
{ui:asChild()}>
<f:slot />
</button>
See Composition for how callers use asChild.
Arguments
Permalink to heading "Arguments"None