Skip to content

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

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

const authConfig = {} as MetabaseAuthConfig;

const Example = ({ children }: PropsWithChildren) => {
  // [<snippet example>]
  const theme = defineMetabaseTheme({
    colors: {
      brand: "#509EE3",
    },
  });

  return (
    <MetabaseProvider authConfig={authConfig} theme={theme}>
      {children}
    </MetabaseProvider>
  );
  // [<endsnippet example>]
};