---
id: fast-foundation.matchmediabehavior.bind
title: MatchMediaBehavior.bind() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [MatchMediaBehavior](./fast-foundation.matchmediabehavior.md) &gt; [bind](./fast-foundation.matchmediabehavior.bind.md)

## MatchMediaBehavior.bind() method

Binds the behavior to the element.

<b>Signature:</b>

```typescript
bind(source: typeof FASTElement & HTMLElement): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  source | typeof [FASTElement](./fast-element.fastelement.md) &amp; HTMLElement | The element for which the behavior is bound. |

<b>Returns:</b>

void
