---
id: fast-foundation.designsystemregistrationcontext.trydefineelement_1
title: DesignSystemRegistrationContext.tryDefineElement() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [DesignSystemRegistrationContext](./fast-foundation.designsystemregistrationcontext.md) &gt; [tryDefineElement](./fast-foundation.designsystemregistrationcontext.trydefineelement_1.md)

## DesignSystemRegistrationContext.tryDefineElement() method

Used to attempt to define a custom element.

<b>Signature:</b>

```typescript
tryDefineElement(params: ElementDefinitionParams): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  params | [ElementDefinitionParams](./fast-foundation.elementdefinitionparams.md) | The custom element definition. |

<b>Returns:</b>

void
