@microsoft/fast-foundation > ElementDefinitionContext
ElementDefinitionContext interface
The design system context in which an element can be defined.
Signature:export interface ElementDefinitionContext 
Properties
| Property | Type | Description | 
|---|---|---|
| container | Container | The dependency injection container associated with the design system. | 
| name | string | The name that the element will be defined as. | 
| shadowRootMode | ShadowRootMode | undefined | The shadow root mode specified by the design system's configuration. | 
| type | Constructable | The type that will be defined. | 
| willDefine | boolean | Indicates whether or not a platform define call will be made in order to define the element. | 
Methods
| Method | Description | 
|---|---|
| defineElement(definition) | Defines the element. | 
| definePresentation(presentation) | Defines a presentation for the element. | 
| tagFor(type) | Returns the HTML element tag name that the type will be defined as. |