Embedded analytics SDK API
    Preparing search index...

    Function MetabaseProvider

    • A component that provides the Metabase SDK context and theme.

      Parameters

      • props: MetabaseProviderProps
        • OptionalallowConsoleLog?: boolean

          Whether to allow logging to the DevTools console. Defaults to true.

        • authConfig: MetabaseAuthConfig

          Defines how to authenticate with Metabase.

        • children: ReactNode

          The children of the MetabaseProvider component.

        • OptionalclassName?: string

          A custom class name to be added to the root element.

        • OptionalerrorComponent?: SdkErrorComponent

          A custom error component to display when the SDK encounters an error.

        • OptionaleventHandlers?: SdkEventHandlersConfig
        • OptionalloaderComponent?: () => Element

          A custom loader component to display while the SDK is loading.

        • Optionallocale?: string

          Defines the display language. Accepts an ISO language code such as en or de. Defaults to en. Does not support country code suffixes (i.e. en-US)

        • OptionalpluginsConfig?: MetabasePluginsConfig

          See Plugins.

        • Optionaltheme?: MetabaseTheme

      Returns ReactNode