R
fn

Primitive

Polymorphic element renderer: renders `as` (a tag or component), or the single slotted child when `as === 'template'`. Local copy of the primitives helper.

Signature

ts
export function Primitive(props: PrimitiveProps & VNodeProps & AllowedComponentProps & Record<string, unknown>, ctx: FunctionalComponentContext){ ... }

Parameters

ParameterTypeDescription
propsPrimitiveProps & VNodeProps & AllowedComponentProps & Record<string, unknown>
ctxFunctionalComponentContext

Returns

import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }> | null