Skip to content

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

616 B
Raw Blame
import {
  CollectionBrowser,
  MetabaseProvider,
  defineMetabaseAuthConfig,
} from "@metabase/embedding-sdk-react";
import React from "react";

const authConfig = defineMetabaseAuthConfig({
  metabaseInstanceUrl: "https://your-metabase.example.com",
});

export default function App() {
  const collectionId = 123; // This is the collection ID you want to browse

  return (
    <MetabaseProvider authConfig={authConfig}>
      <CollectionBrowser
        collectionId={collectionId}
        pageSize={10}
        visibleEntityTypes={["dashboard", "question", "collection"]}
      />
    </MetabaseProvider>
  );
}