widgets Component – <LiveCanvas>

const LiveCanvas: FunctionComponent<LiveCanvasProps>

Embed Live <canvas> inside React. Portal from React to Live.

Props

style?
Record<string, any>

CSS styles to apply to the <canvas>

render?
( canvas: HTMLCanvasElement, ) => LiveElement

Render prop for Live contents

children?
( canvas: HTMLCanvasElement, ) => LiveElement

Render prop for Live contents (alternative)

Source

packages / react / src / live-canvas.tsx

menu
format_list_numbered