Lyna
SupportBlogOpen Lyna
Get startedFeaturesIntegrationsPromptingTips & TricksChangelog
Design

Canvas

The canvas shows your running app in frames. Select an element, edit it in place, move it and zoom around, and every change is written to your code.

The canvas is the center of the editor in Design mode. Each frame on it is your real app, served live from your cloud sandbox. What you change on the canvas is saved to your code.

The editor in Design mode with a frame on the canvas, an element selected and its floating toolbar.

What you can do

  • Select any element in a frame and edit it.
  • Edit text in place.
  • Move elements by dragging them.
  • Copy, paste, duplicate, wrap and delete elements.
  • Ask the AI about the selected element.
  • Pan and zoom across several frames.
  • Undo and redo your changes.

The canvas tools

The floating bar at the bottom of the canvas holds the tools. It is hidden in Code mode.

ControlWhat it does
Select (V)Select and edit elements.
Pan (H)Drag to move around the canvas.
Comment (M)Leave a comment on an element. See Comments.
Zoom In / Zoom OutChange the zoom. Open the zoom menu for Zoom Fit, Zoom 100%, Zoom 200% and Re-Center Canvas.
Restart sandboxRestart the cloud sandbox when the preview stops responding.
DevToolsOpen the DevTools.
Panel (Cmd/Ctrl + J)Open the bottom panel with Problems, Output, Browser console and Terminal.

Select and edit an element

Select it

Click an element in a frame. A blue outline and a floating toolbar appear. Hold Shift and click to add more elements to the selection. You can also select an element from the Layers panel.

Change it

Use the floating toolbar for the most common changes:

  • Text style: preset text styles, size and weight.
  • Color: Text, Fill and Border colors.
  • Alignment: text alignment, and the direction, alignment and gap of the children.
  • Spacing: padding and margin.
  • Link: the link of a link element.
  • More: Ask AI about this element, Open in code, All styles, Duplicate, Wrap in a container, Unwrap and Delete.

For every other property, open All styles or the Styles panel.

Edit text

Double click a text element, or select it and press Enter. Type, then click outside to finish. Text that comes from an expression in your code cannot be edited this way. Lyna tells you so, and you can edit it in the code panel.

A selected heading with the floating element toolbar and the Text style menu open.

Move elements

Drag a selected element to a new place. A drop line shows where it will land. If the drop is not allowed, the line turns red and tells you why, for example Can't drop into own descendant.

You can also move the selected element up or down among its siblings with Shift + Arrow Up and Shift + Arrow Down.

Hold Alt to see the distances between the selected element and the element under the pointer.

The right-click menu

Right-click an element to open its menu:

GroupActions
ViewView instance code, View in Code Panel, Open Styles
AIAdd to AI Chat, New AI Chat
LayoutWrap, Unwrap
StyleMake Invisible or Make Visible, Hide Element or Show Element, Disable Text Selection or Enable Text Selection
EditEdit text, Copy, Paste, Cut, Duplicate, Delete, Save as block

Right-click a frame to Duplicate or Delete it. Save as block adds the element to My Blocks so you can reuse it. See Blocks.

Move around

  • Scroll to pan. Hold Shift while you scroll to pan sideways.
  • Hold Space and drag, or drag with the middle mouse button, to pan.
  • Hold Cmd (Mac) or Ctrl (Windows) and scroll to zoom around the pointer.
  • Drag on an empty part of the canvas to select several frames.

If you lose your frames, choose Re-Center Canvas in the zoom menu, or the button that appears when the canvas is out of view.

Every change is code

Style changes are saved as Tailwind CSS classes on the element in your source file. Moves, wraps and deletes change your JSX. Open the element in the code panel at any time to see the result.

Shortcuts

ActionShortcut
Select toolV
Pan toolH
Comment toolM
Hold to panSpace
Show distancesHold Alt
Edit textEnter
Leave the current actionEsc
Undo / RedoCmd/Ctrl + Z / Cmd/Ctrl + Shift + Z
Copy / Paste / CutCmd/Ctrl + C / V / X
DuplicateCmd/Ctrl + D
DeleteDelete or Backspace
Wrap / UnwrapCmd/Ctrl + G / Cmd/Ctrl + Shift + G
Move up / down among siblingsShift + Arrow Up / Shift + Arrow Down
Insert a container / textR / T
Zoom in / out / fitCmd/Ctrl + = / Cmd/Ctrl + - / Cmd/Ctrl + 0
Add the selection to the chatCmd/Ctrl + Shift + L
Command paletteCmd/Ctrl + K
Show all shortcuts? (Shift + /)

FAQ

Next steps