Skip to main content

@microsoft/fast-element > customElement

customElement() function

Decorator: Defines a platform custom element based on FASTElement.

Signature:
export declare function customElement(nameOrDef: string | PartialFASTElementDefinition): (type: Function) => void;

Parameters

ParameterTypeDescription
nameOrDefstring | PartialFASTElementDefinitionThe name of the element to define or a definition object that describes the element to define.
Returns:

(type: Function) => void