NotebookCatalog
Notebook listing view.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
notebooks required | readonly NotebookCatalogItem[] | None | List of notebooks |
actions | {
create?: ActionTarget | string;
import?: ActionTarget | string;
} | None | Catalog 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;
};