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.

Return

Generating a custom coded component

Create a custom coded component and use it like any other element in your interface.

Steps at a glance ​

  1. Open WeWeb AI in Build mode.
  2. Describe the component so WeWeb AI generates it.
  3. Add properties so the component is configurable in the editor.
  4. Use the component in the interface and test it in preview.

1) Create the component ​

  1. Click AI at the top left of the editor and choose WeWeb AI. Keep the Build mode selected.
  2. Describe the component you want: what it does, the properties you want to control in the editor, and any library it needs.
  3. WeWeb AI generates the component. Drag it onto your page from the chat, or later from Add Element → Your project → Coded components.

Learn more about custom coded components →

2) Add configurable properties ​

Make sure the component is easy to reuse:

  • Add properties for text, colors, and sizes.
  • Provide sensible defaults.
  • Handle empty states gracefully.

3) Use it in the interface ​

  1. Add the component to a page.
  2. Bind properties to variables when needed.
  3. Test interactions in preview mode.

Common pitfalls ​

The component works in the editor but not in preview ​

  • Check for missing configuration values.
  • Confirm you are not relying on editor-only behavior.