Skip to main content
The Web Component block lets you go beyond the built-in blocks and bring your own. Define a custom block as a standard JavaScript web component and drop it onto the canvas in the Live Page Builder — fully editable and reusable across pages.

Defining a custom web component block and configuring its inputs


What You Can Do

  • Drop in any web component that follows the standard custom-element pattern
  • Configure custom inputs (attributes) for your component using the schema input editor
  • Copy and paste a Web Component block to other pages
  • Copy an AI prompt — a built-in utility that generates a ready-to-use prompt (with your configured inputs) so you can offload web component creation to an LLM

Defining a Web Component

A Web Component block is a JavaScript class that extends HTMLElement. Use observedAttributes to declare the inputs you want to expose, and re-render when they change:
Each attribute you list in observedAttributes can be wired up as a configurable input through the schema input editor, so non-technical authors can edit your component’s content from the property panel just like any built-in block.
Use the Copy AI prompt utility to hand off the boilerplate. It produces a prompt pre-filled with the inputs you’ve configured, so an LLM can scaffold the component for you.

Web Components in React

The Live Page Assistant now writes web component blocks in React instead of plain JavaScript, the same way it writes custom entities. React components are quicker to generate and easier to read, so the assistant can build more complex blocks.

The Live Page Assistant building a React web component block

You can also upload a React component by hand in the block’s settings. Plain JavaScript blocks, like the class shown above, keep working as they are.

Viewing and Editing the Code

Open the block’s settings, find the file upload field and click Code. The editor shows the block’s source code, whether you uploaded it or the assistant wrote it.

Opening a web component block's code, editing it and trying it in the preview

  • Code shows the source and lets you edit it
  • Preview shows the block on its own. Set its Inputs to try it with different values
  • Closing the editor with unsaved changes asks whether to discard them
Read the code of a generated block before you publish. Figures should come from the block’s inputs, not be typed into the code.

Moving Blocks Between Accounts

Downloading a template now includes the code of its web component blocks, inside the live page they belong to. Importing the template in another account brings the blocks along and stores their code in that account. This also means a template built outside Wizflow, for example by an AI agent, can carry its own web component blocks and be imported in one go.

Use Cases

  • Bespoke visualizations — render a chart, gauge, or diagram tailored to your data
  • Embedded widgets — calculators, sliders, or interactive elements not covered by built-in blocks
  • Brand-specific UI — components that match a design system exactly

Current Limitations

This is a minimal, complete implementation of custom web component support. The following are not yet supported and are planned for future releases:
  • $ref nested block support
  • Persisting Web Component blocks in the block palette

Next Steps

Live Page Builder

Back to the visual builder overview

Page Templates

Save pages with your custom blocks as templates