Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.22 KB

File metadata and controls

38 lines (23 loc) · 1.22 KB
title Modular embedding SDK - collections
summary Embed Metabase collection browser in your application using the MetabaseProvider SDK component.

Modular embedding SDK - collections

{% include plans-blockquote.html feature="Modular embedding SDK" sdk=true convert_pro_link_to_embedding=true %}

Embedding a collection browser

You can embed Metabase's collection browser so that people can explore items in your Metabase from your application.

CollectionBrowser

API Reference

Example

{% include_file "{{ dirname }}/snippets/collections/collection-browser.tsx" %}

Props

{% include_file "{{ dirname }}/api/snippets/CollectionBrowserProps.md" snippet="properties" %}

Hide the collection picker and hard code the collection you want people to save stuff to

With static questions, you set a specific collection as the collection people can save items to, so that they don't have to bother picking a collection. To hard-code a collection:

  1. Set isSaveEnabled to true.
  2. Set targetCollection to the collection ID you want people to save items to.

For more options, see Question props.