Skip to content

Workbook

function Workbook(__namedParameters): Element;

The editor in one component whose props can come from a React Server Component, as in Next.js’s App Router: plain data such as the file’s name and bytes, the theme, features and language, and a Server Action as onSave. It makes its editor as useWorkbookEditor does, once it’s in the browser; rendered on the server, and until then, it’s the editor’s empty box. Options that are functions (onEvent, onError, onLinkClick, createWorker, and schemas with code) can’t come from a Server Component: render it from a client component of your own to pass them.

Parameter Type
__namedParameters WorkbookProps

Element