Appearance
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
- Open WeWeb AI in
Buildmode. - Describe the component so WeWeb AI generates it.
- Add properties so the component is configurable in the editor.
- Use the component in the interface and test it in preview.
1) Create the component
- Click
AIat the top left of the editor and chooseWeWeb AI. Keep theBuildmode selected. - Describe the component you want: what it does, the properties you want to control in the editor, and any library it needs.
- 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
- Add the component to a page.
- Bind properties to variables when needed.
- 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.

