Skip to main content
Version: 1.x

@microsoft/fast-foundation > FoundationElementDefinition

FoundationElementDefinition interface

An element definition used to define a FoundationElement when registered through the design system registry.

Signature:
export interface FoundationElementDefinition 

Properties

PropertyTypeDescription
attributesEagerOrLazyFoundationOption<(AttributeConfiguration | string)[], this>The custom attributes of the custom element.
baseClassConstructableThe actual FAST base class of the component if different from the class used to compose.
baseNamestringThe non-prefixed name of the component.
elementOptionsEagerOrLazyFoundationOption<ElementDefinitionOptions, this>Options controlling how the custom element is defined with the platform.
shadowOptionsEagerOrLazyFoundationOption<Partial<ShadowRootInit> | null, this>Options controlling the creation of the custom element's shadow DOM.
stylesEagerOrLazyFoundationOption<ComposableStyles | ComposableStyles[], this>The styles to associate with the custom element.
templateEagerOrLazyFoundationOption<ElementViewTemplate, this>The template to render for the custom element.