@alphabatcher: 25 render tools can cost ~10,000 tokens before the user asks anything Generative UI has 3 build patterns Controlled > p…
Summary
Discusses three build patterns for generative UI (controlled, declarative, open-ended) and provides a decision tree for choosing the right approach based on use case.
View Cached Full Text
Cached at: 06/04/26, 01:57 AM
25 render tools can cost ~10,000 tokens before the user asks anything
Generative UI has 3 build patterns
Controlled
pre-build React components register each one with
useComponentagent picks the component best for top 3-10 flows breaks when chart/table/card tools start sounding alike
Declarative
agent returns A2UI JSON frontend maps schema nodes to React components one function can drive many cards, tables, forms, widgets best for dashboards, search results, travel cards, reports breaks when
CATALOG_IDandcatalogIddo not match
Open-ended
agent writes raw HTML app renders it in sandboxed iframe best for one-shot visualizations breaks when sandbox flags block buttons or forms
Decision tree:
pixel-perfect mockup -> Controlled dozens of card types -> Declarative disposable visualization -> Open-ended
Audit your app:
count render tools if past 15, start wiring A2UI if using raw HTML, set iframe sandbox to allow scripts and forms only never allow-same-origin
Similar Articles
@Saboo_Shubham_: https://x.com/Saboo_Shubham_/status/2062220865643982875
The article explains three patterns of Generative UI (Controlled, Declarative, Open-ended) and how CopilotKit implements them via the AG-UI protocol for building dynamic agent-driven interfaces.
@DeRonin_: here's how to become good at generative AI: in short, literally interface for each your agent or extended answer from m…
A post laying out how to get good at Generative UI, recommending Google's "LLMs are Effective UI Generators" paper, key frameworks like Vercel AI SDK, CopilotKit/AG-UI, A2UI and MCP Apps, plus practice projects and reference repos.
@rauchg: Jev Generative UI has been achieved externally
Chris Tate's experiment demonstrates an instant Generative UI system using json-render and jev, enabling real-time rendering of components with custom design systems.
@EXM7777: https://x.com/EXM7777/status/2111457056452665697
A step-by-step tutorial on building generative UI — where the AI decides the shape of the answer and the screen renders live cards, charts, maps and tables — using the open-source OpenUI framework on Claude Opus 5.5 or any other model via OpenRouter.
Generative MUI
Generative MUI lets you use an LLM to build UIs that follow your own Material UI theme.