Skip to content

GeneratedSurface

Experimental

The frame around a screen an assistant made: who made it, its spec, pin, redo and report.

Also known as generated content frame, ai generated area

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

A finished screen

Orders this week

Orders

1,240

Not pinned.

Try Pin and Regenerate. Open View spec to see exactly what the assistant sent.

When to use it

The frame around a screen an assistant made. It always says who made it and lets people read the spec, pin, regenerate or report it, so a generated screen never passes as part of the app.

Made of: Source label (Made by ...) · Status note · Pin, Regenerate and Report buttons · The screen · Text fallback with Try again · View spec

Use it for

  • Around every screen GenUIRenderer draws in a chat.
  • A screen that is still being made: set status to streaming.
  • A screen that failed: show the answer as text with Try again.

Not for

Do and avoid

Orders this week

Orders

48

Late

12

Do. The frame says who made the screen and how to report it.

Orders this week

Orders

48

Late

12

Avoid. With no frame, a made-up screen passes as part of the app.

Do

  • Always show who made the screen, even when it looks like ours.
  • Keep View spec available so people can check what was sent.
  • Give a text version for the failed state.
  • Treat Pin and Regenerate as experiments and watch how people use them.

Avoid

  • Don't hide the source label to make the screen feel built in.
  • Don't keep Regenerate on while a screen is still being made.
  • Don't make Report hard to find.
  • Don't pin a screen without telling people where it went.

On a phone

  • The surface fills the width, and the header wraps so the Pin and Regenerate buttons move to their own line when needed.
  • Buttons keep their size and have a 44px tap area on a touch screen.
  • The spec view scrolls on its own both ways, so a long line does not widen the page.

Seen in products

  • Claude Artifacts: generated pages sit in their own panel the person can open and share.
  • MCP Apps: the host shows where a generated screen came from and can log what it does.
  • OpenAI Apps SDK: a picture-in-picture view keeps a screen alive while the person keeps chatting.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started