fn
Slot
A component that renders a single child from its default slot, applying the provided attributes to it.
Signature
ts
export function Slot(_: Record<string, unknown>,{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
_ | Record<string, unknown> | Props (unused) |
{ slots, attrs } | FunctionalComponentContext | — |
Returns
VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }> | nullCloned VNode with merged attrs or null