---
title: "Dashboard component reference"
description: "Reference for the metabase-dashboard web component attributes, the StaticDashboard, InteractiveDashboard, and EditableDashboard SDK props, and the dashboard creation components."
url: "https://www.metabase.com/docs/latest/embedding/dashboard-reference"
version: "65"
---

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

# Dashboard component reference

Reference material for embedding a dashboard: the attributes you can set on the `<metabase-dashboard>` web component, the props you can pass to the SDK's `StaticDashboard`, `InteractiveDashboard`, and `EditableDashboard` components, and the options for creating dashboards from your app.

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

## Web component `metabase-dashboard` attributes

These attributes apply to the `<metabase-dashboard>` web component. For the SDK, see [`StaticDashboard` props](#react-sdk-staticdashboard-props), [`InteractiveDashboard` props](#react-sdk-interactivedashboard-props), and [`EditableDashboard` props](#react-sdk-editabledashboard-props).

| Property                                                         | Type                 | Description                                                                                                                                                                                                                                                                                                       |
| :--------------------------------------------------------------- | :------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="auto-refresh-interval"></a> `auto-refresh-interval`       | `number`             | Auto-refresh interval in seconds. For example, `60` refreshes the dashboard every 60 seconds.<br>---<br>Optional<br>Available in Pro/Enterprise and Guest embed.                                                                                                                                                  |
| <a id="custom-context"></a> `custom-context`                     | `string`             | Optional custom context string passed through to the guest token endpoint.<br>---<br>Optional<br>Available in Guest embed.                                                                                                                                                                                        |
| <a id="dashboard-id"></a> `dashboard-id`                         | `string` \| `number` | The ID of the dashboard to embed. Can be a regular ID or an [entity ID](https://www.metabase.com/docs/latest/installation-and-operation/serialization.md#entity-ids-work-with-embedding). Only for SSO embeds — guest embeds set the ID with `token`.                                                                |
| <a id="drills"></a> `drills`                                     | `boolean`            | Whether to enable drill-through on the dashboard.<br>---<br>Optional<br>Default: `true`<br>Available in Pro/Enterprise.                                                                                                                                                                                           |
| <a id="enable-entity-navigation"></a> `enable-entity-navigation` | `boolean`            | Whether to enable internal entity navigation (links to dashboards/questions). Requires `drills` to be `true`<br>---<br>Optional<br>Default: `false`<br>Available in Pro/Enterprise.                                                                                                                               |
| <a id="hidden-parameters"></a> `hidden-parameters`               | `string`[]           | List of filter names to hide from the dashboard, e.g. `['productId']`.<br>---<br>Optional<br>Available in Pro/Enterprise.                                                                                                                                                                                         |
| <a id="initial-parameters"></a> `initial-parameters`             | `object`             | Default values for dashboard filters, e.g. `{ 'productId': '42' }`.<br>---<br>Optional<br>Available in Pro/Enterprise and Guest embed.                                                                                                                                                                            |
| <a id="parameters"></a> `parameters`                             | `object`             | Controlled dashboard filters values, e.g. `{ 'productId': '42' }`. Setting this attribute supersedes `initial-parameters` as the seed and stays in sync with subsequent mutations. Pair with the `parameters-change` DOM event to track edits.<br>---<br>Optional<br>Available in Pro/Enterprise and Guest embed. |
| <a id="token"></a> `token`                                       | `string`             | The token for guest embeds. Set automatically by the guest embed flow.<br>---<br>Optional<br>Available in Guest embed.                                                                                                                                                                                            |
| <a id="with-downloads"></a> `with-downloads`                     | `boolean`            | Whether to show the button to download the dashboard as PDF and download question results.<br>---<br>Optional<br>Default: `true` on OSS/Starter, `false` on Pro/Enterprise<br>Available in Guest embed.                                                                                                           |
| <a id="with-subscriptions"></a> `with-subscriptions`             | `boolean`            | Whether to let people set up [dashboard subscriptions](https://www.metabase.com/docs/latest/dashboards/subscriptions.md). Subscriptions sent from embedded dashboards exclude links to Metabase items.<br>---<br>Optional<br>Available in Pro/Enterprise.                                                            |
| <a id="with-title"></a> `with-title`                             | `boolean`            | Whether to show the dashboard title in the embed.<br>---<br>Optional<br>Default: `true`<br>Available in Guest embed.                                                                                                                                                                                              |

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-dashboard
  dashboard-id="1"
  initial-parameters="{ 'productId': '42' }"
  hidden-parameters="['productId']"
></metabase-dashboard>
```

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.

For all modular embeds, you can also set a `locale` in your page-level configuration to [translate embedded content](https://www.metabase.com/docs/latest/embedding/translations.md), including content from translation dictionaries.

## React SDK `StaticDashboard` 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).

`StaticDashboard` embeds a [view-only dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md#embed-a-view-only-dashboard): a lightweight component that displays results without letting people interact with the data.

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

| Property                                                    | Type                                                                                                                                                                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :---------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="autorefreshinterval"></a> `autoRefreshInterval?`     | `number`                                                                                                                                                                                                                                                                                                                  | The interval between auto refreshes on the dashboard, in seconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <a id="classname"></a> `className?`                         | `string`                                                                                                                                                                                                                                                                                                                  | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="dashboardid"></a> `dashboardId?`                     | [`SdkDashboardId`](https://www.metabase.com/docs/latest/embedding/api/SdkDashboardId) \| `null`                                                                                                                                                                                                                                                                     | The ID of the dashboard. <br/> This is either: <br/> - the numerical ID when accessing a dashboard link, i.e. `http://localhost:3000/dashboard/1-my-dashboard` where the ID is `1` <br/> - the string ID found in the `entity_id` key of the dashboard object when using the API directly or using the SDK Collection Browser to return data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <a id="hiddenparameters"></a> `hiddenParameters?`           | `string`[]                                                                                                                                                                                                                                                                                                                | A list of [parameters to hide](https://www.metabase.com/docs/latest/embedding/public-links.md#appearance-parameters). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.                                                                                                                                                                                                                                                                                                                                                         |
| <a id="initialparameters"></a> `initialParameters?`         | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Initial values for query parameters, slug-keyed. Applied once on mount; user widget edits afterwards are not reflected back to the host. <br/> For each parameter: <br/> - set to a value (string for a single option, array of strings for multiple): that value is applied. <br/> - set to `null`: strictly cleared, ignoring the parameter's default. <br/> - omitted (or set to `undefined`): falls back to the parameter's default (or `null` if it has no default). <br/> <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine. |
| <a id="onload"></a> `onLoad?`                               | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <a id="onloadwithoutcards"></a> `onLoadWithoutCards?`       | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded without cards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="onparameterschange"></a> `onParametersChange?`       | (`payload`: [`ParameterChangePayload`](https://www.metabase.com/docs/latest/embedding/api/ParameterChangePayload)) => `void`                                                                                                                                                                                                                                        | Fires on parameters change. The payload's `source` distinguishes the initial state on load (`'initial-state'`), user edits in the UI (`'manual-change'`), and auto-updates (`'auto-change'`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <a id="onvisualizationchange"></a> `onVisualizationChange?` | (`visualization`: \| `"object"` \| `"table"` \| `"bar"` \| `"line"` \| `"pie"` \| `"scalar"` \| `"row"` \| `"area"` \| `"combo"` \| `"pivot"` \| `"smartscalar"` \| `"gauge"` \| `"progress"` \| `"funnel"` \| `"map"` \| `"scatter"` \| `"boxplot"` \| `"waterfall"` \| `"sankey"` \| `"treemap"` \| `"list"`) => `void` | A callback function that triggers when a question is opened from a dashboard card or when the user changes the visualization type of a question.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <a id="parameters"></a> `parameters?`                       | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Controlled parameter values, slug-keyed. On every render, this object replaces the dashboard's parameter values: <br/> - a parameter set to a value uses that value. <br/> - a parameter set to `null` is cleared, even if it has a default. <br/> - a parameter omitted from the object (or set to `undefined`) uses its default (or `null` if it has no default). <br/> <br/> Pair with [onParametersChange](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#onparameterschange) to stay in sync with user edits. <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.               |
| <a id="plugins"></a> `plugins?`                             | [`MetabasePluginsConfig`](https://www.metabase.com/docs/latest/embedding/api/MetabasePluginsConfig)                                                                                                                                                                                                                                                                 | Additional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <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="token"></a> `token?`                                 | `string` \| `null`                                                                                                                                                                                                                                                                                                        | A valid JWT token for the guest embed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <a id="withcardtitle"></a> `withCardTitle?`                 | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard cards should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="withdownloads"></a> `withDownloads?`                 | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to hide the download button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="withsubscriptions"></a> `withSubscriptions?`         | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to show the subscriptions button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <a id="withtitle"></a> `withTitle?`                         | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## React SDK `InteractiveDashboard` props

> Interactive dashboards are 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).

`InteractiveDashboard` embeds an [interactive dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md#embed-an-interactive-dashboard), with drill-downs, click behaviors, and the ability to view and click into questions.

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

| Property                                                              | Type                                                                                                                                                                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :-------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="autorefreshinterval"></a> `autoRefreshInterval?`               | `number`                                                                                                                                                                                                                                                                                                                  | The interval between auto refreshes on the dashboard, in seconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <a id="classname"></a> `className?`                                   | `string`                                                                                                                                                                                                                                                                                                                  | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="dashboardid"></a> `dashboardId`                                | `string` \| `number`                                                                                                                                                                                                                                                                                                      | The ID of the dashboard. <br/> This is either: <br/> - the numerical ID when accessing a dashboard link, i.e. `http://localhost:3000/dashboard/1-my-dashboard` where the ID is `1` <br/> - the string ID found in the `entity_id` key of the dashboard object when using the API directly or using the SDK Collection Browser to return data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <a id="drillthroughquestionheight"></a> `drillThroughQuestionHeight?` | `Height`\<`string` \| `number`\>                                                                                                                                                                                                                                                                                          | Height of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="drillthroughquestionprops"></a> `drillThroughQuestionProps?`   | [`DrillThroughQuestionProps`](https://www.metabase.com/docs/latest/embedding/api/DrillThroughQuestionProps)                                                                                                                                                                                                                                                         | Props of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <a id="enableentitynavigation"></a> `enableEntityNavigation?`         | `boolean`                                                                                                                                                                                                                                                                                                                 | When true, internal click behaviors (links to dashboards/questions) are preserved. When false (default for SDK), these click behaviors are filtered out.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <a id="hiddenparameters"></a> `hiddenParameters?`                     | `string`[]                                                                                                                                                                                                                                                                                                                | A list of [parameters to hide](https://www.metabase.com/docs/latest/embedding/public-links.md#appearance-parameters). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.                                                                                                                                                                                                                                                                                                                                                         |
| <a id="initialparameters"></a> `initialParameters?`                   | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Initial values for query parameters, slug-keyed. Applied once on mount; user widget edits afterwards are not reflected back to the host. <br/> For each parameter: <br/> - set to a value (string for a single option, array of strings for multiple): that value is applied. <br/> - set to `null`: strictly cleared, ignoring the parameter's default. <br/> - omitted (or set to `undefined`): falls back to the parameter's default (or `null` if it has no default). <br/> <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine. |
| <a id="onload"></a> `onLoad?`                                         | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <a id="onloadwithoutcards"></a> `onLoadWithoutCards?`                 | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded without cards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="onparameterschange"></a> `onParametersChange?`                 | (`payload`: [`ParameterChangePayload`](https://www.metabase.com/docs/latest/embedding/api/ParameterChangePayload)) => `void`                                                                                                                                                                                                                                        | Fires on parameters change. The payload's `source` distinguishes the initial state on load (`'initial-state'`), user edits in the UI (`'manual-change'`), and auto-updates (`'auto-change'`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <a id="onvisualizationchange"></a> `onVisualizationChange?`           | (`visualization`: \| `"object"` \| `"table"` \| `"bar"` \| `"line"` \| `"pie"` \| `"scalar"` \| `"row"` \| `"area"` \| `"combo"` \| `"pivot"` \| `"smartscalar"` \| `"gauge"` \| `"progress"` \| `"funnel"` \| `"map"` \| `"scatter"` \| `"boxplot"` \| `"waterfall"` \| `"sankey"` \| `"treemap"` \| `"list"`) => `void` | A callback function that triggers when a question is opened from a dashboard card or when the user changes the visualization type of a question.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <a id="parameters"></a> `parameters?`                                 | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Controlled parameter values, slug-keyed. On every render, this object replaces the dashboard's parameter values: <br/> - a parameter set to a value uses that value. <br/> - a parameter set to `null` is cleared, even if it has a default. <br/> - a parameter omitted from the object (or set to `undefined`) uses its default (or `null` if it has no default). <br/> <br/> Pair with [onParametersChange](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#onparameterschange) to stay in sync with user edits. <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.               |
| <a id="plugins"></a> `plugins?`                                       | [`MetabasePluginsConfig`](https://www.metabase.com/docs/latest/embedding/api/MetabasePluginsConfig)                                                                                                                                                                                                                                                                 | Additional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <a id="renderdrillthroughquestion"></a> `renderDrillThroughQuestion?` | () => [`ReactNode`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L478)                                                                                                                                                                         | A custom React component to render the question layout. Use namespaced InteractiveQuestion components to build the layout.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <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="token"></a> `token?`                                           | `string` \| `null`                                                                                                                                                                                                                                                                                                        | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <a id="withcardtitle"></a> `withCardTitle?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard cards should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="withdownloads"></a> `withDownloads?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to hide the download button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="withsubscriptions"></a> `withSubscriptions?`                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to show the subscriptions button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <a id="withtitle"></a> `withTitle?`                                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## React SDK `EditableDashboard` 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).

`EditableDashboard` does everything `InteractiveDashboard` does, and also lets people [edit the dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md#react-sdk-editable-dashboard): add and update questions, layout, and content.

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

| Property                                                              | Type                                                                                                                                                                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :-------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="autorefreshinterval"></a> `autoRefreshInterval?`               | `number`                                                                                                                                                                                                                                                                                                                  | The interval between auto refreshes on the dashboard, in seconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <a id="classname"></a> `className?`                                   | `string`                                                                                                                                                                                                                                                                                                                  | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="dashboardid"></a> `dashboardId`                                | `string` \| `number`                                                                                                                                                                                                                                                                                                      | The ID of the dashboard. <br/> This is either: <br/> - the numerical ID when accessing a dashboard link, i.e. `http://localhost:3000/dashboard/1-my-dashboard` where the ID is `1` <br/> - the string ID found in the `entity_id` key of the dashboard object when using the API directly or using the SDK Collection Browser to return data                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <a id="datapickerprops"></a> `dataPickerProps?`                       | [`Pick`](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys)\<[`SdkQuestionProps`](https://www.metabase.com/docs/latest/embedding/api/SdkQuestionProps), `"entityTypes"` \| `"dataPicker"`\>                                                                                                                                             | Additional props to pass to the query builder rendered by `InteractiveQuestion` when creating a new dashboard question. Set `dataPicker: "staged"` to always get the staged data picker. By default, Metabase shows a simple dropdown menu with tables and models, and only switches to the staged picker when there are 100 or more data sources. `entityTypes: ["question"]` only takes effect in the staged picker.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <a id="drillthroughquestionheight"></a> `drillThroughQuestionHeight?` | `Height`\<`string` \| `number`\>                                                                                                                                                                                                                                                                                          | Height of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="drillthroughquestionprops"></a> `drillThroughQuestionProps?`   | [`DrillThroughQuestionProps`](https://www.metabase.com/docs/latest/embedding/api/DrillThroughQuestionProps)                                                                                                                                                                                                                                                         | Props of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <a id="enableentitynavigation"></a> `enableEntityNavigation?`         | `boolean`                                                                                                                                                                                                                                                                                                                 | When true, internal click behaviors (links to dashboards/questions) are preserved. When false (default for SDK), these click behaviors are filtered out.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <a id="hiddenparameters"></a> `hiddenParameters?`                     | `string`[]                                                                                                                                                                                                                                                                                                                | A list of [parameters to hide](https://www.metabase.com/docs/latest/embedding/public-links.md#appearance-parameters). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.                                                                                                                                                                                                                                                                                                                                                         |
| <a id="initialparameters"></a> `initialParameters?`                   | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Initial values for query parameters, slug-keyed. Applied once on mount; user widget edits afterwards are not reflected back to the host. <br/> For each parameter: <br/> - set to a value (string for a single option, array of strings for multiple): that value is applied. <br/> - set to `null`: strictly cleared, ignoring the parameter's default. <br/> - omitted (or set to `undefined`): falls back to the parameter's default (or `null` if it has no default). <br/> <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [initialParameters](https://www.metabase.com/docs/latest/embedding/api/InteractiveDashboardProps#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine. |
| <a id="onload"></a> `onLoad?`                                         | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <a id="onloadwithoutcards"></a> `onLoadWithoutCards?`                 | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded without cards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="onparameterschange"></a> `onParametersChange?`                 | (`payload`: [`ParameterChangePayload`](https://www.metabase.com/docs/latest/embedding/api/ParameterChangePayload)) => `void`                                                                                                                                                                                                                                        | Fires on parameters change. The payload's `source` distinguishes the initial state on load (`'initial-state'`), user edits in the UI (`'manual-change'`), and auto-updates (`'auto-change'`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <a id="onvisualizationchange"></a> `onVisualizationChange?`           | (`visualization`: \| `"object"` \| `"table"` \| `"bar"` \| `"line"` \| `"pie"` \| `"scalar"` \| `"row"` \| `"area"` \| `"combo"` \| `"pivot"` \| `"smartscalar"` \| `"gauge"` \| `"progress"` \| `"funnel"` \| `"map"` \| `"scatter"` \| `"boxplot"` \| `"waterfall"` \| `"sankey"` \| `"treemap"` \| `"list"`) => `void` | A callback function that triggers when a question is opened from a dashboard card or when the user changes the visualization type of a question.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <a id="parameters"></a> `parameters?`                                 | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/api/ParameterValues)                                                                                                                                                                                                                                                                             | Controlled parameter values, slug-keyed. On every render, this object replaces the dashboard's parameter values: <br/> - a parameter set to a value uses that value. <br/> - a parameter set to `null` is cleared, even if it has a default. <br/> - a parameter omitted from the object (or set to `undefined`) uses its default (or `null` if it has no default). <br/> <br/> Pair with [onParametersChange](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#onparameterschange) to stay in sync with user edits. <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to filter data on the frontend is a [security risk](https://www.metabase.com/docs/latest/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account). <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/api/EditableDashboardProps#hiddenparameters) to declutter the user interface is fine.               |
| <a id="plugins"></a> `plugins?`                                       | [`MetabasePluginsConfig`](https://www.metabase.com/docs/latest/embedding/api/MetabasePluginsConfig)                                                                                                                                                                                                                                                                 | Additional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <a id="renderdrillthroughquestion"></a> `renderDrillThroughQuestion?` | () => [`ReactNode`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L478)                                                                                                                                                                         | A custom React component to render the question layout. Use namespaced InteractiveQuestion components to build the layout.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| <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="token"></a> `token?`                                           | `string` \| `null`                                                                                                                                                                                                                                                                                                        | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <a id="withcardtitle"></a> `withCardTitle?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard cards should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <a id="withdownloads"></a> `withDownloads?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to hide the download button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <a id="withsubscriptions"></a> `withSubscriptions?`                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to show the subscriptions button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <a id="withtitle"></a> `withTitle?`                                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## React SDK `CreateDashboardModal` 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).

`CreateDashboardModal` lets people [create a new dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md#createdashboardmodal) from your app.

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

| Property                                                | Type                                                                       | Description                                                                                                        |
| :------------------------------------------------------ | :------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
| <a id="initialcollectionid"></a> `initialCollectionId?` | [`SdkCollectionId`](https://www.metabase.com/docs/latest/embedding/api/SdkCollectionId)                              | Initial collection in which to create a dashboard. You can use predefined system values like `root` or `personal`. |
| <a id="isopen"></a> `isOpen?`                           | `boolean`                                                                  | Whether the modal is open or not.                                                                                  |
| <a id="onclose"></a> `onClose?`                         | () => `void`                                                               | Handler to close modal component                                                                                   |
| <a id="oncreate"></a> `onCreate`                        | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/api/MetabaseDashboard)) => `void` | Handler to react on dashboard creation.                                                                            |
| <a id="targetcollection"></a> `targetCollection?`       | [`SdkCollectionId`](https://www.metabase.com/docs/latest/embedding/api/SdkCollectionId)                              | The collection to save the dashboard to. This will hide the collection picker from the save modal.                 |

## React SDK `useCreateDashboardApi` options

> 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).

`useCreateDashboardApi` [creates a dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md#usecreatedashboardapi) without Metabase's own modal, so you can build your own UI.

- [Hook](https://www.metabase.com/docs/latest/embedding/sdk/api/useCreateDashboardApi.md)
- [Options](https://www.metabase.com/docs/latest/embedding/sdk/api/CreateDashboardValues.md)

| Property                                 | Type                                          | Description                                                                                                    |
| :--------------------------------------- | :-------------------------------------------- | :------------------------------------------------------------------------------------------------------------- |
| <a id="collectionid"></a> `collectionId` | [`SdkCollectionId`](https://www.metabase.com/docs/latest/embedding/api/SdkCollectionId) | Collection in which to create a new dashboard. You can use predefined system values like `root` or `personal`. |
| <a id="description"></a> `description`   | `string` \| `null`                            | Dashboard description                                                                                          |
| <a id="name"></a> `name`                 | `string`                                      | Dashboard title                                                                                                |

## React SDK `dashboardCardMenu` plugin

> 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).

`dashboardCardMenu` controls the overflow menu on each dashboard card. It takes either a config object with the keys below, or a function returning a React element.

| Key             | What it does                                                                                                           |
| --------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `withDownloads` | Shows or hides the download button.                                                                                    |
| `withEditLink`  | Shows or hides the link to edit the question.                                                                          |
| `customItems`   | Your own menu items. Each element is either an item object or a function that receives `{ question }` and returns one. |

See [Customize the menu on dashboard cards](https://www.metabase.com/docs/latest/embedding/dashboard.md#customize-the-menu-on-dashboard-cards-react-sdk-only).

## Further reading

- [Embed a dashboard](https://www.metabase.com/docs/latest/embedding/dashboard.md)
- [Embed the query builder](https://www.metabase.com/docs/latest/embedding/query-builder.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)
- [Embedding parameters](https://www.metabase.com/docs/latest/embedding/parameters.md)
- [Parameters reference](https://www.metabase.com/docs/latest/embedding/parameters-reference.md)
- [Appearance](https://www.metabase.com/docs/latest/embedding/appearance.md)
