OptionalclassName?: stringOptionaldataPicker?: EmbeddingDataPickerControls the menu for selecting data sources in questions. You can opt for the full data picker by setting dataPicker = "staged".
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.
OptionalinitialCollection?: SdkCollectionIdThe collection to preselect in the save modal's collection picker. Unlike targetCollection, the picker remains visible and the user can choose a different collection. Ignored when targetCollection is set.
OptionalinitialSqlParameters?: SqlParameterValuesInitial values for SQL parameters, slug-keyed. Applied once on mount; user widget edits afterwards are not reflected back to the host.
For each parameter:
null: strictly cleared, ignoring the parameter's default.
undefined): falls back to the parameter's default (or null if it has no default).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: MetabaseQuestion | undefined) => 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
OptionalonSqlParametersChange?: (payload: SqlParameterChangePayload) => voidFires on SQL 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').
OptionalonVisualizationChange?: (A callback function that triggers when the visualization type changes.
Optionalplugins?: MetabasePluginsConfigOptionalsqlParameters?: SqlParameterValuesControlled SQL parameter values, slug-keyed. On every render, this object replaces the question's parameter values:
null is cleared, even if it has a default.
undefined) uses its default (or null if it has no default).
onSqlParametersChange to stay in sync with user edits.Optionalstyle?: 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.
Optionalwidth?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
OptionalwithAlerts?: booleanEnables the ability to set up alerts on the question.
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 question.
OptionalwithEditorButton?: booleanDetermines whether the editor button is shown. Only relevant when using the default layout.
A custom class name to be added to the root element.