UNPKG

@ndbx/runtime

Version:

The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those

19 lines (18 loc) 551 B
import React from "react"; import Context from "./context"; import { LiteralValue } from "./types"; interface PlayerProps { userId: string; projectId: string; version?: string; item?: string; values?: Record<string, LiteralValue>; apiRoot?: string; publishedUrlTemplate?: string; assetsUrlTemplate?: string; libUrlTemplate?: string; onProjectLoaded?: (context: Context) => void; onProjectError?: (message: string) => void; } declare const NodeBoxPlayer: React.FC<PlayerProps>; export default NodeBoxPlayer;