Draw a screen

Draw a screen of a component as a simple page of boxes, put elements inside each other, say what each button does, and let AI add what you describe.

In short

A screen of a component is a page you draw with plain lines, like a pencil sketch. Every box on it is a part of the design, so the canvas, the code compare and the documentation all see it. You drag elements onto the page, put them inside panels and tabs, and say what each one does. AI can add what you describe, and a coding agent can build it.

Before you start

Open a screen's page

  1. On the canvas, double-click a component, or select it and press "Open what is inside". Its screens, functions and tables open as a design of their own.
  2. Select a screen and press "Open its design". The first time, this starts the screen's own design.
  3. Press "Sketch" at the top. The screen's page opens, with each of its parts drawn as a box.

Drag elements and put them inside each other

  1. Open "Elements" in the left rail and drag a button, a field, a table or a panel onto the page.
  2. Drag a box to move it. Drag a corner to resize it. Press Delete to remove the selected box.
  3. Drop an element on a panel, a tab, a dialog or a list to put it inside. It then moves with its container.
  4. Drag it out of the container to take it out again.

The canvas shows the same nesting. A part that holds others is a frame around them, and you resize it from its corners. Drop a part on a frame there to put it inside.

Say what a button does

  1. Select the button. The inspector on the right is its documentation.
  2. Write what it does under "Description".
  3. Under "Calls", choose the function it runs. Press "Open the flow of" and its name to draw that function's steps.
  4. Under "When it shows", write when people see it, such as the cart has items. Leave it empty when it always shows.
  5. For a list or a table, choose under "Shows rows of" the table it shows. The inspector lists that table's columns.
  6. Press "Explain" to have AI read the part's code and say what it does. This needs code connected to the design.

Let AI change the page

  1. At the top of the page, write what to add or change, such as add a search field and two buttons above the table. Press "Draft".
  2. Look at the page. Added elements have bold dashed lines, and removed ones fade.
  3. Press "Apply" in the bar above the page to keep them, or "Discard" to drop them. One undo takes it all back.
  4. On a design with an approved version, press "Propose as a Change" instead. A manager of the design approves it first.

AI never decides AI only proposes. Nothing changes until you apply it, or until a manager approves the Change.

Build it with a coding agent

  1. Propose the page's change as a Change. The "Changes" panel opens on it.
  2. Press "Copy prompt" and paste it into any coding tool. It describes the page as elements inside each other, with what each one does.
  3. Or, once the Change is approved, press "Implement". It makes a card a coding agent can build from.

Good to know

If something goes wrong

Related