Skip to main content

@microsoft/fast-element > PartialFASTElementDefinition

PartialFASTElementDefinition interface

Represents metadata configuration for a custom element.

export interface PartialFASTElementDefinition 


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.