---
title: "Browser component reference"
description: "Reference for the metabase-browser web component attributes and the CollectionBrowser SDK props."
url: "https://www.metabase.com/docs/latest/embedding/browser-reference"
version: "65"
---

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

# Browser component reference

Reference material for embedding a collection browser:

- [Web component attributes](#web-component-metabase-browser-attributes)
- [React SDK props](#react-sdk-collectionbrowser-props)

For how to set all this up, check out [Embed a collection browser](https://www.metabase.com/docs/latest/embedding/browser.md).

## Web component `metabase-browser` attributes

These attributes apply to the `<metabase-browser>` web component.

| Property                                                             | Type                 | Description                                                                                                                                                                                                                                                                                                                                                                                       |
| :------------------------------------------------------------------- | :------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="collection-entity-types"></a> `collection-entity-types`       | `string`[]           | An array of entity types to show in the collection browser: `collection`, `dashboard`, `question`, `model`.<br>---<br>Optional<br>Possible values: `"model"`, `"collection"`, `"dashboard"`, `"question"`                                                                                                                                                                                         |
| <a id="collection-page-size"></a> `collection-page-size`             | `number`             | How many items to show per page in the collection browser.<br>---<br>Optional                                                                                                                                                                                                                                                                                                                     |
| <a id="collection-visible-columns"></a> `collection-visible-columns` | `string`[]           | An array of columns to show in the collection browser: `type`, `name`, `description`, `lastEditedBy`, `lastEditedAt`, `archive`.<br>---<br>Optional<br>Possible values: `"type"`, `"name"`, `"description"`, `"lastEditedBy"`, `"lastEditedAt"`, `"archive"`                                                                                                                                      |
| <a id="data-picker-entity-types"></a> `data-picker-entity-types`     | `string`[]           | An array of entity types to show in the question's data picker: `model`, `table`.<br>---<br>Optional<br>Possible values: `"model"`, `"table"`                                                                                                                                                                                                                                                     |
| <a id="enable-entity-navigation"></a> `enable-entity-navigation`     | `boolean`            | Whether to enable internal entity navigation (links to dashboards/questions).<br>---<br>Optional<br>Default: `false`                                                                                                                                                                                                                                                                              |
| <a id="initial-collection"></a> `initial-collection`                 | `string` \| `number` | Which collection to start from. Values: regular ID, entity ID, `"root"` for the top-level "Our Analytics" collection, `"personal"` for the viewer's personal collection, `"tenant"` for the viewer's tenant collection, or `"all"` to show everything the viewer can access: their personal collection plus the shared collections. People who aren't tenant members get an error for `"tenant"`. |
| <a id="read-only"></a> `read-only`                                   | `boolean`            | Whether the content manager is in read-only mode. When `true`, people can interact with items (filter, summarize, drill-through) but can't save. When `false`, they can create and edit items.<br>---<br>Optional<br>Default: `true`                                                                                                                                                              |
| <a id="with-new-dashboard"></a> `with-new-dashboard`                 | `boolean`            | Whether to show the "New dashboard" button. Only applies when `read-only` is `false`.<br>---<br>Optional<br>Default: `true`                                                                                                                                                                                                                                                                       |
| <a id="with-new-question"></a> `with-new-question`                   | `boolean`            | Whether to show the "New question" button.<br>---<br>Optional<br>Default: `true`                                                                                                                                                                                                                                                                                                                  |

Depending on the framework you're using, you may need to stringify attributes before passing them to the component. And if you surround an attribute's value with double quotes, use single quotes inside it:

```html
<metabase-browser
  initial-collection="123"
  collection-entity-types="['collection', 'dashboard']"
  data-picker-entity-types="['model']"
></metabase-browser>
```

These examples use sequential IDs — the number in the item's URL. On Pro and Enterprise plans, you can use [entity IDs](https://www.metabase.com/docs/latest/installation-and-operation/serialization.md#entity-ids-work-with-embedding) instead; they stay the same when you [serialize](https://www.metabase.com/docs/latest/installation-and-operation/serialization.md) content from one Metabase to another, like from staging to production.

## React SDK `CollectionBrowser` props

> Modular embedding SDK is only available on [Pro](https://store.metabase.com/checkout/embedding) and [Enterprise](https://www.metabase.com/product/enterprise) plans (both self-hosted and on Metabase Cloud).

`CollectionBrowser` lists the items in a collection and reports clicks. Unlike the web component, it doesn't open items or offer buttons for creating them. See [React SDK collection browser](https://www.metabase.com/docs/latest/embedding/browser.md#react-sdk-collection-browser).

- [Component](https://www.metabase.com/docs/latest/embedding/sdk/api/CollectionBrowser.md)
- [Props](https://www.metabase.com/docs/latest/embedding/sdk/api/CollectionBrowserProps.md)

| Property                                                      | Type                                                                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| :------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="classname"></a> `className?`                           | `string`                                                                                                                                                     | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <a id="collectionid"></a> `collectionId?`                     | [`SdkBrowserCollectionId`](https://www.metabase.com/docs/latest/embedding/api/SdkBrowserCollectionId)                                                                                                  | 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"`. |
| <a id="emptycontentcomponent"></a> `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <a id="onclick"></a> `onClick?`                               | (`item`: [`MetabaseCollectionItem`](https://www.metabase.com/docs/latest/embedding/api/MetabaseCollectionItem)) => `void`                                                                              | A function to call when an item is clicked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <a id="pagesize"></a> `pageSize?`                             | `number`                                                                                                                                                     | The number of items to display per page. The default is 25.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| <a id="showdashboardquestions"></a> `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.                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="style"></a> `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <a id="visiblecolumns"></a> `visibleColumns?`                 | [`CollectionBrowserListColumns`](https://www.metabase.com/docs/latest/embedding/api/CollectionBrowserListColumns)[]                                                                                    | The columns to display in the collection items table. If not provided, all columns will be shown.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <a id="visibleentitytypes"></a> `visibleEntityTypes?`         | (`"collection"` \| `"dashboard"` \| `"model"` \| `"question"`)[]                                                                                             | The types of entities that should be visible. If not provided, all entities will be shown.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

## Further reading

- [Embed a collection browser](https://www.metabase.com/docs/latest/embedding/browser.md)
- [Dashboard component reference](https://www.metabase.com/docs/latest/embedding/dashboard-reference.md)
- [Question component reference](https://www.metabase.com/docs/latest/embedding/question-reference.md)
- [Modular embedding components](https://www.metabase.com/docs/latest/embedding/components.md)
