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

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

## display() function

Applies a CSS display property. Also adds CSS rules to not display the element when the \[hidden\] attribute is applied to the element.

<b>Signature:</b>

```typescript
export declare function display(displayValue: CSSDisplayPropertyValue): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  displayValue | [CSSDisplayPropertyValue](./fast-foundation.cssdisplaypropertyvalue.md) |  |

<b>Returns:</b>

string
