OptionalclassName?: stringA custom class name to be added to the root element.
OptionalentityTypes?: EmbeddingEntityType[]An array that specifies which entity types are available in the data picker
Optionalheight?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
OptionalhiddenParameters?: string[]A list of parameters to hide.
OptionalinitialSqlParameters?: SqlParameterValuesInitial values for the SQL parameters.
OptionalisSaveEnabled?: booleanWhether to show the save button.
OptionalonBeforeSave?: (A callback function that triggers before saving. Only relevant when isSaveEnabled = true
OptionalonNavigateBack?: () => voidA callback function that triggers when a user clicks the back button.
OptionalonRun?: (question: undefined | MetabaseQuestion) => voidA callback function that triggers when a question is updated, including when a user clicks the Visualize button in the question editor
OptionalonSave?: (A callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
OptionalonVisualizationChange?: (A callback function that triggers when the visualization type changes.
Optionalplugins?: MetabasePluginsConfigOptionalstyle?: CSSPropertiesA custom style object to be added to the root element.
OptionaltargetCollection?: SdkCollectionIdThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
Optionaltitle?: SdkQuestionTitlePropsDetermines whether the question title is displayed, and allows a custom title to be displayed instead of the default question title. Shown by default. Only applicable to interactive questions when using the default layout.
Optionalwidth?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
OptionalwithChartTypeSelector?: booleanDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
OptionalwithDownloads?: booleanEnables the ability to download results in the interactive question.
OptionalwithResetButton?: booleanDetermines whether a reset button is displayed. Only relevant when using the default layout.
FunctionA navigation button that returns to the previous view. Only visible when rendered within the InteractiveDashboardProps.renderDrillThroughQuestion prop.
FunctionDropdown button for the Breakout component.
FunctionDetailed chart type selection interface with recommended visualization options.
FunctionProvides a UI widget for downloading data in different formats (CSV, XLSX, JSON, and PNG depending on the visualization).
FunctionProvides a button that contains a dropdown that shows the DownloadWidget.
FunctionAdvanced query editor that provides full access to question configuration. Includes filtering, aggregation, custom expressions, and joins.
OptionalhasVisualizeButton?: booleanOptionalonApply?: () => voidCallback function executed when changes are applied
FunctionToggle button for showing/hiding the Editor interface.
In custom layouts, the EditorButton must have an InteractiveQuestionEditorButtonProps.onClick` handler or the button won't do anything when clicked.
OptionalisOpen?: booleanWhether the editor is currently open
OptionalonClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
FunctionA set of interactive filter badges that allow adding, editing, and removing filters. Displays current filters as badges with an "Add another filter" option.
OptionalwithColumnItemIcon?: booleanWhether to show the icon for the column item
FunctionA dropdown button for the Filter component.
OptionalwithColumnItemIcon?: booleanWhether to show the icon for the column item
FunctionAdvanced query editor that provides full access to question configuration. Includes filtering, aggregation, custom expressions, and joins.
OptionalhasVisualizeButton?: booleanOptionalonApply?: () => voidCallback function executed when changes are applied
FunctionToggle button for showing/hiding the Editor interface.
In custom layouts, the EditorButton must have an InteractiveQuestionEditorButtonProps.onClick` handler or the button won't do anything when clicked.
OptionalisOpen?: booleanWhether the editor is currently open
OptionalonClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
FunctionSettings panel for configuring visualization options like axes, colors, and formatting. Uses question context for settings.
FunctionDropdown button that contains the QuestionSettings component.
Optionalprops: InteractiveQuestionQuestionSettingsDropdownPropsOptionalheight?: Height<string | number>Height for the dropdown menu
FunctionThe main visualization component that renders the question results as a chart, table, or other visualization type.
OptionalclassName?: stringA custom class name to be added to the root element.
Optionalstyle?: CSSPropertiesA custom style object to be added to the root element.
Optionalheight?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
Optionalwidth?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
FunctionButton to reset question modifications. Only appears when there are unsaved changes to the question.
Optionalprops: ButtonPropsFunctionButton for saving question changes. Only enabled when there are unsaved modifications to the question.
Note: Currently, in custom layouts, the SaveButton must have an onClick handler or the button will not do anything when clicked.
Optionalprops: InteractiveQuestionSaveButtonPropsOptionalonClick?: MouseEventHandler<HTMLButtonElement>A handler function to be called when the button is clicked
FunctionForm for saving a question, including title and description. When saved:
OptionalonCancel?: () => voidCallback function executed when save is cancelled
FunctionDropdown button for the Summarize component.
FunctionDisplays a title based on the question's state. Shows:
OptionalclassName?: stringA custom class name to be added to the root element.
Optionalstyle?: CSSPropertiesA custom style object to be added to the root element.
A component that renders an interactive question.