---
id: fast-foundation.elementdefinitioncontext.defineelement
title: ElementDefinitionContext.defineElement() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [ElementDefinitionContext](./fast-foundation.elementdefinitioncontext.md) &gt; [defineElement](./fast-foundation.elementdefinitioncontext.defineelement.md)

## ElementDefinitionContext.defineElement() method

Defines the element.

<b>Signature:</b>

```typescript
defineElement(definition?: ContextualElementDefinition): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  definition | [ContextualElementDefinition](./fast-foundation.contextualelementdefinition.md) | The definition for the element. |

<b>Returns:</b>

void
