# Visual edit (/build/editor/visual-edit)

<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 [#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 [#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="/images/build/editor/visual-edit/activate-light.webp" alt="Edit button clicked in the preview toolbar showing a dropdown with Visual edits and Theme options." className="theme-image light-image" />
      <img src="/images/build/editor/visual-edit/activate-dark.webp" alt="Edit button clicked in the preview toolbar showing a dropdown with Visual edits and Theme options." className="theme-image dark-image" />
    </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="/images/build/editor/visual-edit/content-light.webp" alt="Visual edit mode active in Rocket with a selected element and the editing toolbar showing Ask me field and controls." />
    </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 [#editing-tools]

### Edit style [#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="/images/build/editor/visual-edit/edit-style-light.webp" 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." />
    </Frame>
  </Step>
</Steps>

### Edit spacing [#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="/images/build/editor/visual-edit/edit-spacing-light.webp" alt="Spacing panel expanded showing individual margin and padding numeric inputs for a selected element." />
    </Frame>
  </Step>
</Steps>

### Edit image [#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="/images/build/editor/visual-edit/update-image-light.webp" alt="Update image panel showing Import URL, Upload file, Auto AI regenerate, and Instruction options for a selected image element." />
    </Frame>
  </Step>
</Steps>

### Delete an element [#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="/images/build/editor/visual-edit/delete-element-light.webp" alt="Visual edit toolbar with the delete element icon highlighted showing a Delete element tooltip." />
    </Frame>
  </Step>
</Steps>

### Go to code [#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="/images/build/editor/visual-edit/go-to-code-light.webp" alt="Visual edit toolbar with the Go to code icon highlighted showing a Go to code tooltip on a selected heading element." />
    </Frame>
  </Step>
</Steps>

### Ask for a quick change [#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 [#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? [#whats-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>
