---
id: fast-foundation.foundationelement.template
title: FoundationElement.template property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [FoundationElement](./fast-foundation.foundationelement.md) &gt; [template](./fast-foundation.foundationelement.template.md)

## FoundationElement.template property

Sets the template of the element instance. When undefined, the element will attempt to resolve the template from the associated presentation or custom element definition.

<b>Signature:</b>

```typescript
template: ElementViewTemplate | void | null;
```