Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

567 B
Raw Blame
import {
  type MetabaseAuthConfig,
  MetabaseProvider,
  type MetabaseTheme,
} from "@metabase/embedding-sdk-react";
import type { PropsWithChildren } from "react";

const authConfig = {} as MetabaseAuthConfig;
const theme = {} as MetabaseTheme;

const Example = ({ children }: PropsWithChildren) => (
  // [<snippet example>]
  <MetabaseProvider
    authConfig={authConfig}
    theme={theme}
    pluginsConfig={{
      mapQuestionClickActions: () => [], // Add your custom actions here
    }}
  >
    {children}
  </MetabaseProvider>
  // [<endsnippet example>]
);