@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
Property | Type | Description |
---|---|---|
attributes | EagerOrLazyFoundationOption<(AttributeConfiguration | string)[], this> | The custom attributes of the custom element. |
baseClass | Constructable | The actual FAST base class of the component if different from the class used to compose. |
baseName | string | The non-prefixed name of the component. |
elementOptions | EagerOrLazyFoundationOption<ElementDefinitionOptions, this> | Options controlling how the custom element is defined with the platform. |
shadowOptions | EagerOrLazyFoundationOption<Partial<ShadowRootInit> | null, this> | Options controlling the creation of the custom element's shadow DOM. |
styles | EagerOrLazyFoundationOption<ComposableStyles | ComposableStyles[], this> | The styles to associate with the custom element. |
template | EagerOrLazyFoundationOption<ElementViewTemplate, this> | The template to render for the custom element. |