---
id: fast-foundation.defaultcomponentpresentation._constructor_
title: DefaultComponentPresentation.(constructor)
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [DefaultComponentPresentation](./fast-foundation.defaultcomponentpresentation.md) &gt; [(constructor)](./fast-foundation.defaultcomponentpresentation._constructor_.md)

## DefaultComponentPresentation.(constructor)

Creates an instance of DefaultComponentPresentation.

<b>Signature:</b>

```typescript
constructor(template?: ElementViewTemplate, styles?: ComposableStyles | ComposableStyles[]);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  template | [ElementViewTemplate](./fast-element.elementviewtemplate.md) | The template to apply to the element. |
|  styles | [ComposableStyles](./fast-element.composablestyles.md) \| [ComposableStyles](./fast-element.composablestyles.md)<!-- -->\[\] | The styles to apply to the element. |
