# TableGridSwitchFoldersState

**Category:** Base Components/Collections/TableGridSwitchFolders/TableGridSwitchFoldersState

## API

### Overview

`TableGridSwitchFoldersState` manages the state for a [`TableGridSwitchFolders`](./?path=/story/base-components-collections-tablegridswitch--tablegridswitchfolders) component — a collection that supports switching between table and grid views while also displaying folders. Holds a `GridFoldersState`, a `TableFoldersState`, and a `viewTypeState` for toggling layouts.

### Description

`TableGridSwitchFoldersState` is the return value of the [`useTableGridSwitchFolders()`](./?path=/story/base-components-collections-tablegridswitchfolders-usetablegridswitchfolders--usetablegridswitchfolders) hook.

### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `gridFoldersState` | `GridFoldersState<T1, F1, T2, F2>` | Yes | - | [GridFoldersState](./?path=/story/base-components-collections-gridfolders-gridfoldersstate--gridfoldersstate) |
| `tableFoldersState` | `TableFoldersState<T1, F1, T2, F2>` | Yes | - | [TableFoldersState](./?path=/story/base-components-collections-tablefolders-tablefoldersstate--tablefoldersstate) |
| `toolbar` | `ToolbarCollectionState<T1, {}>` | Yes | - | Underlying [ToolbarCollectionState](./?path=/story/common-state--toolbarcollectionstate) instance |

