> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual edit

> Click any element in your Rocket.new app preview to change text, style, spacing, or images without writing code.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

<Note>
  Visual edit is accessed via the **web browser**, but you can use it to edit both web app and mobile app build tasks.
</Note>

Visual edit lets you click directly on any element in your preview and change it on the spot. No prompts, no guessing selectors. Select something, adjust it, and save.

<Divider />

## When to use visual edit

| Use visual edit when                 | Use chat instead when                        |
| :----------------------------------- | :------------------------------------------- |
| You can see and click the element    | You need changes across multiple pages       |
| Quick text, style, or spacing tweaks | Complex layout restructuring or new sections |
| You want immediate visual feedback   | You are adding new features or logic         |

<Divider />

## How to use

<Steps>
  <Step title="Open the Edit menu">
    In the preview toolbar, click **Edit**. A dropdown appears with two options: **Visual edits** and **Theme**.

    <Frame caption="Edit dropdown showing Visual edits and Theme options">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/activate-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=c1f07af817066f3e2777b431dd1e80c4" alt="Edit button clicked in the preview toolbar showing a dropdown with Visual edits and Theme options." className="theme-image light-image" width="1440" height="812" data-path="images/build-docs/editor/visual-edit/activate-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/activate-dark.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=cafddcce0e6a4b6b918d789c9f6c2ecd" alt="Edit button clicked in the preview toolbar showing a dropdown with Visual edits and Theme options." className="theme-image dark-image" width="1440" height="812" data-path="images/build-docs/editor/visual-edit/activate-dark.webp" />
    </Frame>
  </Step>

  <Step title="Select Visual edits">
    Click **Visual edits**. The preview becomes interactive and elements highlight as you hover over them.
  </Step>

  <Step title="Click an element">
    Click any element to select it. A floating toolbar appears with editing controls and an **Ask me...** field for quick AI-assisted changes.

    <Frame caption="Visual edit toolbar on a selected element">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/content-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=70c476f3dad9bb471e1a45020a0a1985" alt="Visual edit mode active in Rocket with a selected element and the editing toolbar showing Ask me field and controls." width="1440" height="812" data-path="images/build-docs/editor/visual-edit/content-light.webp" />
    </Frame>
  </Step>

  <Step title="Make your changes">
    Use the toolbar controls to adjust style, spacing, text, or images. You can also type a change in the **Ask me...** field and Rocket applies it to just that element.
  </Step>

  <Step title="Save">
    Click **Save changes** to write all pending changes to code. You can edit multiple elements before saving and they all apply at once.
  </Step>
</Steps>

<Divider />

## Editing tools

### Edit style

Adjust colors, fonts, weight, and alignment directly in the toolbar.

<Steps>
  <Step title="Select an element">
    Click the element you want to style.
  </Step>

  <Step title="Adjust style controls">
    Use the font size, weight, color, or alignment controls in the toolbar. Changes apply immediately in the preview.
  </Step>

  <Step title="Save changes">
    Click **Save changes**.

    <Frame caption="Style controls on a selected element">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/edit-style-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=1511a86388e841ff754773e2eccf90d1" alt="Visual edit toolbar showing font size set to 20, Normal weight, color picker, text edit, spacing, italic, underline, align, go to code, and delete controls on a selected paragraph." width="1440" height="1122" data-path="images/build-docs/editor/visual-edit/edit-style-light.webp" />
    </Frame>
  </Step>
</Steps>

### Edit spacing

Adjust margin and padding values on any element.

<Steps>
  <Step title="Select an element">
    Click the element you want to adjust.
  </Step>

  <Step title="Open spacing controls">
    Click the spacing icon in the toolbar.
  </Step>

  <Step title="Set values">
    Enter values for each side of the margin and padding.
  </Step>

  <Step title="Save changes">
    Click **Save changes**.

    <Frame caption="Spacing panel with margin and padding controls">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/edit-spacing-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=ddbeb3b0cbd96549ca0390abf8a5c1bd" alt="Spacing panel expanded showing individual margin and padding numeric inputs for a selected element." width="1440" height="1211" data-path="images/build-docs/editor/visual-edit/edit-spacing-light.webp" />
    </Frame>
  </Step>
</Steps>

### Edit image

Replace or update an image without touching code.

<Steps>
  <Step title="Select an image">
    Click an image element to select it.
  </Step>

  <Step title="Open image controls">
    Click the image icon in the toolbar.
  </Step>

  <Step title="Choose update method">
    Choose how to update it:

    * **Import** a URL from the web
    * **Upload** a file from your device (PNG, JPG up to 1MB)
    * **Auto** to regenerate the image with AI
    * **Instruction** to describe what you want
  </Step>

  <Step title="Apply the update">
    Click **Update**.

    <Frame caption="Update image panel">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/update-image-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=a013806d6d65d6605ef50a303970e30f" alt="Update image panel showing Import URL, Upload file, Auto AI regenerate, and Instruction options for a selected image element." width="1440" height="1219" data-path="images/build-docs/editor/visual-edit/update-image-light.webp" />
    </Frame>
  </Step>
</Steps>

### Delete an element

Remove an element from the page.

<Steps>
  <Step title="Select the element">
    Click the element you want to remove.
  </Step>

  <Step title="Delete it">
    Click the **Delete element** icon at the end of the toolbar.
  </Step>

  <Step title="Save changes">
    Click **Save changes**.

    <Frame caption="Delete element highlighted in the toolbar">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/delete-element-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=cf05efa145934c2af9c2ea8328141a89" alt="Visual edit toolbar with the delete element icon highlighted showing a Delete element tooltip." width="1440" height="1214" data-path="images/build-docs/editor/visual-edit/delete-element-light.webp" />
    </Frame>
  </Step>
</Steps>

### Go to code

Jump directly to the element's source code for changes beyond what the toolbar offers.

<Steps>
  <Step title="Select an element">
    Click the element whose code you want to view.
  </Step>

  <Step title="Open code view">
    Click the **`</>`** icon in the toolbar. The code view opens with the element highlighted.

    <Frame caption="Go to code highlighted in the toolbar">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/SjTE8D-vvYrzhPjv/images/build-docs/editor/visual-edit/go-to-code-light.webp?fit=max&auto=format&n=SjTE8D-vvYrzhPjv&q=85&s=5a8f7b5938b030a0da3620bbada7e965" alt="Visual edit toolbar with the Go to code icon highlighted showing a Go to code tooltip on a selected heading element." width="1440" height="1220" data-path="images/build-docs/editor/visual-edit/go-to-code-light.webp" />
    </Frame>
  </Step>
</Steps>

### Ask for a quick change

Every selected element has an **Ask me...** field at the top of the toolbar. Type a change in plain language and Rocket applies it to just that element.

**Examples:**

* `Make this button orange with white text and rounded corners`
* `Set this heading to bold, center aligned, 32px`
* `Add 24px padding and a subtle box shadow to this card`
* `Change the background to a gradient from blue to purple`

<Divider />

## Toolbar reference

| Tool             | What it does                                          |
| :--------------- | :---------------------------------------------------- |
| Ask me...        | Apply a plain-language change to the selected element |
| Font size        | Set the size numerically                              |
| Font weight      | Toggle Bold, Semibold, Normal, etc.                   |
| Color            | Change the text or fill color                         |
| T                | Edit the text content inline                          |
| Spacing          | Adjust margin and padding                             |
| I / U            | Italic and underline                                  |
| Align            | Change text or element alignment                      |
| Image            | Replace or regenerate an image                        |
| `</>`            | Jump to the element's source code                     |
| Delete           | Remove the element from the page                      |
| **Save changes** | Write all pending changes to code                     |

<Divider />

## What's next?

<CardGroup cols={2}>
  <Card title="Theme" icon="palette" href="/build/editor/theme">
    Update your site's fonts, colors, logo, and images from one place.
  </Card>

  <Card title="Commands" icon="pen-field" href="/build/editor/commands">
    Use slash and @ commands for precise, targeted edits.
  </Card>

  <Card title="Chat" icon="messages" href="/build/editor/chat">
    Use chat for bigger changes, new sections, or logic updates.
  </Card>

  <Card title="Code tab" icon="code" href="/build/editor/code">
    Browse and edit your task source files directly.
  </Card>
</CardGroup>
