---
id: fast-foundation.propertystylesheetbehavior
title: PropertyStyleSheetBehavior class
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [PropertyStyleSheetBehavior](./fast-foundation.propertystylesheetbehavior.md)

## PropertyStyleSheetBehavior class

A behavior to add or remove a stylesheet from an element based on a property. The behavior ensures that styles are applied while the property matches and that styles are not applied if the property does not match.

<b>Signature:</b>

```typescript
export declare class PropertyStyleSheetBehavior implements Behavior 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(propertyName, value, styles)](./fast-foundation.propertystylesheetbehavior._constructor_.md) |  | Constructs a [PropertyStyleSheetBehavior](./fast-foundation.propertystylesheetbehavior.md) instance. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [bind(elementInstance)](./fast-foundation.propertystylesheetbehavior.bind.md) |  | Binds the behavior to the element. |
