---
title: "Interface CollectionBrowserProps"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/CollectionBrowserProps"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Interface CollectionBrowserProps

**`Expand`**

## Properties

| Property                                                      | Type                                                                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| :------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `className?`                           | `string`                                                                                                                                                     | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `collectionId?`                     | [`SdkBrowserCollectionId`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkBrowserCollectionId.md)                                                                                                  | The collection to show: - a number - the collection ID. You can find it in the URL of a collection in your Metabase instance. For `http://localhost:3000/collection/1-my-collection` the ID is `1`. - an entity ID string, e.g. `"nT4gT_MOnU1uJ1zLsGaTV"`. - `"personal"` - the user's personal collection. - `"tenant"` - the user's tenant collection. - `"root"` - the root collection, "Our analytics". - `"all"` - a list that contains the root collection, the tenant collections, and the user's personal collection. Defaults to `"personal"`. |
| `EmptyContentComponent?`   | \| [`ComponentType`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L104) \| `null` | A component to display when there are no items in the collection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `onClick?`                               | (`item`: [`MetabaseCollectionItem`](https://www.metabase.com/docs/latest/embedding/sdk/api/MetabaseCollectionItem.md)) => `void`                                                                              | A function to call when an item is clicked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `pageSize?`                             | `number`                                                                                                                                                     | The number of items to display per page. The default is 25.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `showDashboardQuestions?` | `boolean`                                                                                                                                                    | Whether to show questions that belong to a dashboard alongside collection saved questions. Set to true to show them. Defaults to false, keeping the list focused on collection content.                                                                                                                                                                                                                                                                                                                                                                 |
| `style?`                                   | [`CSSProperties`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L2579)             | A custom style object to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `visibleColumns?`                 | [`CollectionBrowserListColumns`](https://www.metabase.com/docs/latest/embedding/sdk/api/CollectionBrowserListColumns.md)[]                                                                                    | The columns to display in the collection items table. If not provided, all columns will be shown.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `visibleEntityTypes?`         | (`"collection"` \| `"dashboard"` \| `"model"` \| `"question"`)[]                                                                                             | The types of entities that should be visible. If not provided, all entities will be shown.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
