reidbarber / gen-ui

Use text or image prompts to generate components and apps built with React.
11 stars 3 forks source link

Include screenshots at each step #9

Open reidbarber opened 11 months ago

reidbarber commented 11 months ago

Option 1: On client

Can use something like html2canvas.

May be difficult to implement with the iframe: https://github.com/codesandbox/sandpack/discussions/838

Can look into dispatching via Sandpack or window.postMessage().

Option 2: On server

Using something like puppeteer or playwright.