Coursereader API - v0.1.0
    Preparing search index...

    Function createPlayground

    • Renders the self-contained playground UI into a host element.

      The playground includes header tabs, a control panel, sample sheets and a multi-page viewer. It registers its demo preset and binding in the global registries on first use.

      Parameters

      • target: string | HTMLElement

        Host element or selector that receives the playground.

      • options: PlaygroundOptions = {}

        Titles, sample content and section visibility.

      Returns PlaygroundHandle

      A handle for removing the playground.

      When both sections are disabled.

      const playground = createPlayground("#app", {
      title: "Archive Scan",
      sections: { playground: true, viewer: true },
      });