# TableFoldersState

**Category:** Base Components/Collections/TableFolders/TableFoldersState

## API

### Overview

`TableFoldersState` manages the state for a [`TableFolders`](./?path=/story/base-components-collections-tablefolders--tablefolders) component, which displays folders and items in a table layout. Holds separate `CollectionState` instances for folders and items, plus a shared `TableState` and toolbar. Created by [`useTableCollection`](./?path=/story/base-components-collections-table-usetablecollection--usetablecollection) with a folders configuration.

### Description

`TableFoldersState` is the return value of the [`useTableFolders()`](./?path=/story/base-components-collections-tablefolders-usetablefolders--usetablefolders) hook.

### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `toolbar` | `ToolbarCollectionState<T1, {}>` | Yes | - | Underlying [ToolbarCollectionState](./?path=/story/common-state--toolbarcollectionstate) instance |
| `tableState` | `TableState<T1, {}>` | Yes | - | Underlying [TableState](./?path=/story/base-components-collections-table-tablestate--tablestate) instance |
| `collections` | `{ readonly folders: CollectionState<T2, F2>; readonly items: CollectionState<T1, F1>; }` | Yes | - | Underlying [CollectionState](./?path=/story/common-state--collectionstate) instances for folders and items |

