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

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

## reflectAttributes() function

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
> 

Reflects attributes from the host element to the target element of the directive.

<b>Signature:</b>

```typescript
export declare function reflectAttributes<T = any>(...attributes: string[]): CaptureType<T>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  attributes | string\[\] | The attributes to reflect |

<b>Returns:</b>

[CaptureType](./fast-element.capturetype.md)<!-- -->&lt;T&gt;

## Example


```ts
const template = html`
    <button
        ${reflectAttributes("aria-label", "aria-describedby")}
    >
         hello world
    </button
`

```
