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

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

# Interface StaticQuestionComponents

## InteractiveQuestion

### Breakout()

```ts
Breakout: () =>
  | Element
  | null;
```

**`Function`**

A set of badges for managing data groupings (breakouts).
Uses question context for breakout functionality.

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### BreakoutDropdown()

```ts
BreakoutDropdown: (props: InteractiveQuestionBreakoutDropdownProps) =>
  | Element
  | null;
```

**`Function`**

Dropdown button for the Breakout component.

#### Parameters

| Parameter | Type                                                                                            | Description |
| :-------- | :---------------------------------------------------------------------------------------------- | :---------- |
| `props`   | [`InteractiveQuestionBreakoutDropdownProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionBreakoutDropdownProps.md) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### ChartTypeDropdown()

```ts
ChartTypeDropdown: (props: InteractiveQuestionChartTypeDropdownProps) =>
  Element;
```

**`Function`**

Dropdown for selecting the visualization type (bar chart, line chart, table, etc.).
Automatically updates to show recommended visualization types for the current data.

#### Parameters

| Parameter | Type                                                                                              | Description |
| :-------- | :------------------------------------------------------------------------------------------------ | :---------- |
| `props`   | [`InteractiveQuestionChartTypeDropdownProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionChartTypeDropdownProps.md) |             |

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### ChartTypeSelector()

```ts
ChartTypeSelector: (props: StackProps) => Element;
```

**`Function`**

Detailed chart type selection interface with recommended visualization options.

#### Parameters

| Parameter | Type                                                       | Description |
| :-------- | :--------------------------------------------------------- | :---------- |
| `props`   | [`StackProps`](https://v7.mantine.dev/core/stack/?t=props) |             |

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### DownloadWidget()

```ts
DownloadWidget: (props: StackProps) =>
  | Element
  | null;
```

**`Function`**

Provides a UI widget for downloading data in different formats (`CSV`, `XLSX`, `JSON`, and `PNG` depending on the visualization).

#### Parameters

| Parameter | Type                                                       | Description |
| :-------- | :--------------------------------------------------------- | :---------- |
| `props`   | [`StackProps`](https://v7.mantine.dev/core/stack/?t=props) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### DownloadWidgetDropdown()

```ts
DownloadWidgetDropdown: (props: PopoverProps) =>
  | Element
  | null;
```

**`Function`**

Provides a button that contains a dropdown that shows the `DownloadWidget`.

#### Parameters

| Parameter | Type                                                           | Description |
| :-------- | :------------------------------------------------------------- | :---------- |
| `props`   | [`PopoverProps`](https://v7.mantine.dev/core/popover/?t=props) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### Filter()

```ts
Filter: (props: InteractiveQuestionFilterProps) => Element;
```

**`Function`**

A set of interactive filter badges that allow adding, editing, and removing filters.
Displays current filters as badges with an "Add another filter" option.

#### Parameters

| Parameter | Type                                                                        | Description |
| :-------- | :-------------------------------------------------------------------------- | :---------- |
| `props`   | [`InteractiveQuestionFilterProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionFilterProps.md) |             |

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### FilterDropdown()

```ts
FilterDropdown: (props: InteractiveQuestionFilterDropdownProps) =>
  | Element
  | null;
```

**`Function`**

A dropdown button for the Filter component.

#### Parameters

| Parameter | Type                                                                                        | Description |
| :-------- | :------------------------------------------------------------------------------------------ | :---------- |
| `props`   | [`InteractiveQuestionFilterDropdownProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionFilterDropdownProps.md) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### QuestionSettings()

```ts
QuestionSettings: (props: StackProps) =>
  | Element
  | null;
```

**`Function`**

Settings panel for configuring visualization options like axes, colors, and formatting.
Uses question context for settings.

#### Parameters

| Parameter | Type                                                       | Description |
| :-------- | :--------------------------------------------------------- | :---------- |
| `props`   | [`StackProps`](https://v7.mantine.dev/core/stack/?t=props) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### QuestionSettingsDropdown()

```ts
QuestionSettingsDropdown: (
  props?: InteractiveQuestionQuestionSettingsDropdownProps,
) => Element;
```

**`Function`**

Dropdown button that contains the QuestionSettings component.

#### Parameters

| Parameter | Type                                                                                                            | Description |
| :-------- | :-------------------------------------------------------------------------------------------------------------- | :---------- |
| `props?`  | [`InteractiveQuestionQuestionSettingsDropdownProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionQuestionSettingsDropdownProps.md) |             |

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### QuestionVisualization()

```ts
QuestionVisualization: (
  props: {
    className?: string;
    style?: CSSProperties;
  } & {
    height?: Height<string | number>;
    width?: Width<string | number>;
  } & {},
) => Element;
```

**`Function`**

The main visualization component that renders the question results as a chart, table, or other visualization type.

#### Parameters

| Parameter | Type                                                                                                                                                                                                                                                                                              | Description |
| :-------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :---------- |
| `props`   | \{ `className?`: `string`; `style?`: [`CSSProperties`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L2579); \} & \{ `height?`: `Height`\<`string` \| `number`\>; `width?`: `Width`\<`string` \| `number`\>; \} & \{ \} |             |

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### RefreshButton()

```ts
RefreshButton: (props?: InteractiveQuestionRefreshButtonProps) =>
  | Element
  | null;
```

**`Function`**

Button to run the current query. Only appears when automatic reruns are turned off for the database.

#### Parameters

| Parameter | Type                                                                                      | Description |
| :-------- | :---------------------------------------------------------------------------------------- | :---------- |
| `props?`  | [`InteractiveQuestionRefreshButtonProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionRefreshButtonProps.md) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### ResetButton()

```ts
ResetButton: (props?: ButtonProps) =>
  | Element
  | null;
```

**`Function`**

Button to reset question modifications. Only appears when there are unsaved changes to the question.

#### Parameters

| Parameter | Type                                  | Description |
| :-------- | :------------------------------------ | :---------- |
| `props?`  | [`ButtonProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/ButtonProps.md) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### SqlParametersList()

```ts
SqlParametersList: () =>
  | Element
  | null;
```

**`Function`**

Parameters list for SQL questions

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### Summarize()

```ts
Summarize: () => Element;
```

**`Function`**

Interface for adding and managing data summaries (like counts, sums, averages). Displays as a set of badges.
Uses question context for summarization functionality.

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)

---

### SummarizeDropdown()

```ts
SummarizeDropdown: (props: InteractiveQuestionSummarizeDropdownProps) =>
  | Element
  | null;
```

**`Function`**

Dropdown button for the Summarize component.

#### Parameters

| Parameter | Type                                                                                              | Description |
| :-------- | :------------------------------------------------------------------------------------------------ | :---------- |
| `props`   | [`InteractiveQuestionSummarizeDropdownProps`](https://www.metabase.com/docs/latest/embedding/sdk/api/InteractiveQuestionSummarizeDropdownProps.md) |             |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `null`

---

### Title()

```ts
Title: (props: {
  className?: string;
  style?: CSSProperties;
}) =>
  | Element
  | undefined;
```

**`Function`**

Displays a title based on the question's state. Shows:

- The question's display name if it's saved
- An auto-generated description for ad-hoc questions (non-native queries)

#### Parameters

| Parameter          | Type                                                                                                                                                                                      | Description                                            |
| :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------- |
| `props`            | \{ `className?`: `string`; `style?`: [`CSSProperties`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/index.d.ts#L2579); \} |                                                        |
| `props.className?` | `string`                                                                                                                                                                                  | A custom class name to be added to the root element.   |
| `props.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. |

#### Returns

\| [`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
\| `undefined`

## other

### AlertsButton()

```ts
AlertsButton: () => Element;
```

#### Returns

[`Element`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0b728411cd1dfb4bd26992bb35a73cf8edaa22e7/types/react/jsx-runtime.d.ts#L6)
