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 extendsHTMLElement. Use observedAttributes to declare the inputs you want to expose, and re-render when they change:
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.
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
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
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:$refnested 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

