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

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

# Interface InteractiveDashboardProps

**`Expand`**

## Properties

| Property                                                              | Type                                                                                                                                                                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| :-------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `autoRefreshInterval?`               | `number`                                                                                                                                                                                                                                                                                                                  | The interval between auto refreshes on the dashboard, in seconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `className?`                                   | `string`                                                                                                                                                                                                                                                                                                                  | A custom class name to be added to the root element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `drillThroughQuestionHeight?` | `Height`\<`string` \| `number`\>                                                                                                                                                                                                                                                                                          | Height of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `drillThroughQuestionProps?`   | [`DrillThroughQuestionProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/DrillThroughQuestionProps.md)                                                                                                                                                                                                                                                         | Props of a question component when drilled from the dashboard to a question level.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `enableEntityNavigation?`         | `boolean`                                                                                                                                                                                                                                                                                                                 | When true, internal click behaviors (links to dashboards/questions) are preserved. When false (default for SDK), these click behaviors are filtered out.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `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/sdk/api/InteractiveDashboardProps.md#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#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/sdk/api/InteractiveDashboardProps.md#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#hiddenparameters) to declutter the user interface is fine.                                                                                                                                                                                                                                                                                                                                                         |
| `initialParameters?`                   | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/sdk/api/ParameterValues.md)                                                                                                                                                                                                                                                                             | 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/sdk/api/InteractiveDashboardProps.md#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#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/sdk/api/InteractiveDashboardProps.md#initialparameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#hiddenparameters) to declutter the user interface is fine. |
| `onLoad?`                                         | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/sdk/api/MetabaseDashboard.md) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `onLoadWithoutCards?`                 | (`dashboard`: [`MetabaseDashboard`](https://www.metabase.com/docs/latest/embedding/sdk/api/MetabaseDashboard.md) \| `null`) => `void`                                                                                                                                                                                                                                      | Callback that is called when the dashboard is loaded without cards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `onParametersChange?`                 | (`payload`: [`ParameterChangePayload`](https://www.metabase.com/docs/latest/embedding/sdk/api/ParameterChangePayload.md)) => `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'`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `parameters?`                                 | [`ParameterValues`](https://www.metabase.com/docs/latest/embedding/sdk/api/ParameterValues.md)                                                                                                                                                                                                                                                                             | 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/sdk/api/EditableDashboardProps.md#onparameterschange) to stay in sync with user edits. <br/> - Combining [parameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#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/sdk/api/EditableDashboardProps.md#parameters) and [hiddenParameters](https://www.metabase.com/docs/latest/embedding/sdk/api/EditableDashboardProps.md#hiddenparameters) to declutter the user interface is fine.               |
| `plugins?`                                       | [`MetabasePluginsConfig`](https://www.metabase.com/docs/latest/embedding/sdk/api/MetabasePluginsConfig.md)                                                                                                                                                                                                                                                                 | Additional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `token?`                                           | `string` \| `null`                                                                                                                                                                                                                                                                                                        | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `withCardTitle?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard cards should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `withDownloads?`                           | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to hide the download button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `withSubscriptions?`                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether to show the subscriptions button.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `withTitle?`                                   | `boolean`                                                                                                                                                                                                                                                                                                                 | Whether the dashboard should display a title.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
