---
id: fast-foundation.defaultcomponentpresentation
title: DefaultComponentPresentation class
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)

## DefaultComponentPresentation class

The default implementation of ComponentPresentation, used by FoundationElement.

<b>Signature:</b>

```typescript
export declare class DefaultComponentPresentation implements ComponentPresentation 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(template, styles)](./fast-foundation.defaultcomponentpresentation._constructor_.md) |  | Creates an instance of DefaultComponentPresentation. |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [styles](./fast-foundation.defaultcomponentpresentation.styles.md) |  | [ElementStyles](./fast-element.elementstyles.md) \| null | The styles to apply to the element. |
|  [template](./fast-foundation.defaultcomponentpresentation.template.md) |  | [ElementViewTemplate](./fast-element.elementviewtemplate.md) \| null | The template to apply to the element. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [applyTo(element)](./fast-foundation.defaultcomponentpresentation.applyto.md) |  | Applies the presentation details to the specified element. |
