Choreo.Lab.Sketch (Choreo v0.10.0)

Copy Markdown View Source

A custom Kino widget that renders Mermaid diagrams inside an interactive Excalidraw whiteboard.

Experimental module

This module is experimental and its API is subject to change.

Summary

Functions

Creates a new Kino widget rendering a Mermaid diagram on an Excalidraw canvas.

Types

t()

@type t() :: Kino.JS.t()

Functions

new(mermaid_code, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()

Creates a new Kino widget rendering a Mermaid diagram on an Excalidraw canvas.

Options

  • :height - The height of the canvas container (e.g., "600px", "800px"). Defaults to "600px".