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

[@microsoft/fast-element](./fast-element.md) &gt; [CSSDirective](./fast-element.cssdirective.md)

## CSSDirective class

Directive for use in [css()](./fast-element.css.md)<!-- -->.

<b>Signature:</b>

```typescript
export declare class CSSDirective 
```

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [createBehavior()](./fast-element.cssdirective.createbehavior.md) |  | Creates a behavior to bind to the host element. |
|  [createCSS()](./fast-element.cssdirective.createcss.md) |  | Creates a CSS fragment to interpolate into the CSS document. |
