UI

Playground

Describe what you’re building. See how a component or a layout is configured, validated, and refined.

YOUR DROPDOWN

Describe what you’re building.
The simulator will choose a menu.

Simulated output — no model is called Validated component arguments

One prompt. A working dropdown, configured for your app.

Choose what to generate in the top-right corner of the canvas: a single component, or a Layout composed from the composition catalog. Try the result, then describe a change to refine it. Open Generated configuration to inspect or copy the exact arguments or composition spec, and the last change that was applied.

Simulated output: no model is called. This playground runs entirely in your browser, with no network request and no credentials. A small simulator stands in for the model: it picks a curated configuration whose keywords match your prompt, such as an export menu, a spreadsheet toolbar, a chat screen, a settings form, a dashboard, or a tabbed panel. It turns follow-up requests into edits by keyword: dark or light, an accent color, small or large, a variant, rename, add, and remove.

Everything after that choice is the real library:

  • Every proposal is validated against the component schemas before it renders.
  • A component change is a partial edit applied with applyEdit. A layout change is a JSON Patch applied with applyCompositionUpdate, so element IDs and checkbox selections are kept.
  • Invalid proposals fail atomically. Ask for an “extra large” size, or add a tab panel to a layout without tabs, to see the validation error while the current configuration stays unchanged.
  • Actions display the selected event; your application provides the actual export, save, or other operation.

To generate configurations with a model, your application connects its own provider: send the component's JSON Schema or the composition prompt and update schema, then apply the response with the same calls. See Building with agents.