Optional
children?: ReactNodeThe children of the MetabaseProvider component.s
Optional
className?: stringA custom class name to be added to the root element.
Optional
entityTypeFilter?: EntityTypeFilterKeys[]An array that specifies which entity types are available in the data picker
Optional
height?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
Optional
initialSqlParameters?: ParameterValuesInitial values for the SQL parameters.
Optional
isSaveEnabled?: booleanWhether to show the save button.
Optional
onBeforeSave?: (A callback function that triggers before saving. Only relevant when isSaveEnabled = true
Optional
onSave?: (A callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
Optional
plugins?: MetabasePluginsConfigThe ID of the question. This is either:
http://localhost:3000/question/1-my-question
where the ID is 1
entity_id
key of the question object. You can find a question's Entity ID in the info panel when viewing a questionnew
to show the notebook editor for creating new questions. isSaveEnabled
must be true
to allow saving the questionOptional
style?: CSSPropertiesA custom style object to be added to the root element.
Optional
targetCollection?: SdkCollectionIdThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
Optional
title?: 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.
Optional
width?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
Optional
withChartTypeSelector?: booleanDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
Optional
withDownloads?: booleanEnables the ability to download results in the interactive question.
Optional
withResetButton?: booleanDetermines whether a reset button is displayed. Only relevant when using the default layout.
Function
A navigation button that returns to the previous view. Only visible when rendered within the InteractiveDashboardProps.renderDrillThroughQuestion prop.
Function
Dropdown button for the Breakout component.
Function
Detailed chart type selection interface with recommended visualization options.
Function
Provides a UI widget for downloading data in different formats (CSV
, XLSX
, JSON
, and PNG
depending on the visualization).
Function
Provides a button that contains a dropdown that shows the DownloadWidget
.
Function
Advanced query editor that provides full access to question configuration. Includes filtering, aggregation, custom expressions, and joins.
Optional
onApply?: () => voidCallback function executed when changes are applied
Function
Toggle 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.
Optional
isOpen?: booleanWhether the editor is currently open
Optional
onClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
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.
Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
Function
A dropdown button for the Filter component.
Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
Function
Advanced query editor that provides full access to question configuration. Includes filtering, aggregation, custom expressions, and joins.
Optional
onApply?: () => voidCallback function executed when changes are applied
Function
Toggle 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.
Optional
isOpen?: booleanWhether the editor is currently open
Optional
onClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
Function
Settings panel for configuring visualization options like axes, colors, and formatting. Uses question context for settings.
Function
Dropdown button that contains the QuestionSettings component.
Optional
props: InteractiveQuestionQuestionSettingsDropdownPropsOptional
height?: Height<string | number>Height for the dropdown menu
Function
The main visualization component that renders the question results as a chart, table, or other visualization type.
Function
Button to reset question modifications. Only appears when there are unsaved changes to the question.
Optional
props: ButtonPropsFunction
Button 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.
Optional
props: InteractiveQuestionSaveButtonPropsOptional
onClick?: MouseEventHandler<HTMLButtonElement>A handler function to be called when the button is clicked
Function
Form for saving a question, including title and description. When saved:
Optional
onCancel?: () => voidCallback function executed when save is cancelled
Function
Dropdown button for the Summarize component.
Function
Displays a title based on the question's state. Shows:
A component that renders an interactive question.