Esc
Documentation
On this page

Props

PropTypeDefaultDescription
notebooks requiredreadonly NotebookCatalogItem[]NoneList of notebooks
actions{ create?: ActionTarget | string; import?: ActionTarget | string; }NoneCatalog actions

Example

ts
NotebookCatalog({
  notebooks: [
    { id: "n1", title: "Revenue Analysis", updatedAt: "2025-01-15" },
    { id: "n2", title: "User Segments", updatedAt: "2025-01-14" },
  ],
  actions: { create: createNotebook(), import: importNotebook() },
})

Supporting types

NotebookCatalogItem
export type NotebookCatalogItem = {
  id: string;
  title: string;
  description?: string;
  environment?: string;
  location?: string;
  updatedAt?: string;
  lastViewedAt?: string;
};

View the source on GitHub