Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Component editor ​

The component editor lets you open the code of a coded component that is already in your project, change its files, and save your changes as a new version of the component, without leaving WeWeb.

Accessing the component editor ​

To access the component editor:

  1. Click on the Development icon (terminal icon) in the Interface section sidebar
  2. Under the Advanced section, click Component editor

The Coded Component Editor panel opens next to the Development menu.

Opening a component ​

  1. In Select component, choose one of the coded components of your project.
  2. In Select a source version, choose the version to start from. The editor selects the active version of the component by default. Each version shows its number and the message written when it was created.
The Coded Component Editor panel with a component and its version selected, the files on the left and the ww-config.js file open

The files of the component appear under Files, with ww-config.js open first. Click a file to open it. To add a file, click Add file at the root of the component or inside a folder.

To see what changed between two versions, choose another version in Select version to compare. While you compare, the files can't be edited. Click Close diff to go back to editing.

Saving your changes as a new version ​

Your changes are not saved in the component until you create a new version:

  1. Edit the files. As soon as you change something, the Revert all and Review changes buttons appear. Revert all brings back the files of the source version.
  2. Click Review changes. You can now see what you changed compared with the source version, with the number of lines added and removed in each file.
  3. Write a Commit message that describes your changes, then click Create version. To change something else first, click Back to edition.

WeWeb then builds the new version. This can take a moment: a notification tells you when the component has been updated, or when an error happened during the build.

Editing a component with AI ​

Once a component is open, click Edit with AI to open WeWeb AI with this component and the selected version attached to the conversation. You can then ask the AI to make the changes for you.

Learn more about coded components made with AI →

Components you can't edit ​

Coded components imported from GitHub can't be edited in the component editor. When you open one, the editor shows Component from GitHub cannot be edited. You can still read its files and compare its versions.

Development resources ​

For detailed technical documentation:

  • Click Documentation in the Development menu's Information section
  • Visit the public repositories for component examples

CONTINUE LEARNING

Learn how to choose which version of each coded component your project uses:

Learn about component versions →