Skip to content

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

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

const authConfig = {} as MetabaseAuthConfig;

const Example = ({ children }: PropsWithChildren) => (
  // [<snippet example>]
  <MetabaseProvider
    authConfig={authConfig}
    // Allowlist the custom visualizations to load, by their names,
    // each prefixed with `custom:`.
    allowedCustomVisualizations={["custom:Calendar Heatmap", "custom:Thumbs"]}
  >
    {children}
  </MetabaseProvider>
  // [<endsnippet example>]
);