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

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

## TreeView class

A Tree view Custom HTML Element. Implements the [ARIA TreeView](https://w3c.github.io/aria-practices/#TreeView)<!-- -->.


- The default slot for tree items

<b>Signature:</b>

```typescript
export declare class TreeView extends FoundationElement 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [currentSelected](./fast-foundation.treeview.currentselected.md) |  | HTMLElement \| [TreeItem](./fast-foundation.treeitem.md) \| null | The currently selected tree item |
|  [renderCollapsedNodes](./fast-foundation.treeview.rendercollapsednodes.md) |  | boolean | /\*\* When true, the control will be appear expanded by user interaction. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [connectedCallback()](./fast-foundation.treeview.connectedcallback.md) |  |  |
