Skip to main content

@microsoft/fast-element > PartialFASTElementDefinition

PartialFASTElementDefinition interface

Represents metadata configuration for a custom element.

Signature:
export interface PartialFASTElementDefinition 

Properties

PropertyTypeDescription
attributes(AttributeConfiguration | string)[]The custom attributes of the custom element.
elementOptionsElementDefinitionOptionsOptions controlling how the custom element is defined with the platform.
namestringThe name of the custom element.
shadowOptionsPartial<ShadowRootInit> | nullOptions controlling the creation of the custom element's shadow DOM.
stylesComposableStyles | ComposableStyles[]The styles to associate with the custom element.
templateElementViewTemplateThe template to render for the custom element.