Documentation

Custom Component Widget

Updated on

May 1, 2026

Get started

1. Add a custom component widget

  1. In Edit Mode, click the + Custom button in the floating toolbar at the bottom of the page.
  2. The widget appears on the dashboard with the Properties Panel open on the right.
  3. In the Properties Panel, verify the Render Mode dropdown shows HTML (sandboxed iframe) by default, and a Code text area is visible below it.
  4. Close the Properties Panel.

Result: The widget displays the placeholder text "Edit this widget to add your custom component" until code is entered.

2. Write HTML content

  1. Open the Properties Panel for the custom component widget.
  2. Confirm Render Mode is set to HTML (sandboxed iframe) (the default).
  3. Click the Code text area, select all existing text, and type your HTML markup.
  4. Close the Properties Panel.

Result: The widget renders your HTML inside a sandboxed iframe. Content updates each time you edit the code.

Use React mode

3. Switch to React mode and write a component

  1. Open the Properties Panel and click the Render Mode dropdown.
  2. Select React (inline, themed).
  3. Click the Code text area, select all text, and write your component using ctx.createElement syntax (not JSX).

Result: The widget renders inline without an iframe, using the dashboard's theme. You have access to ctx.data, ctx.columns, and other context variables.

4. Switch between HTML and React modes

  1. Open the Render Mode dropdown and switch between HTML (sandboxed iframe) and React (inline, themed).
  2. Each mode automatically loads its own starter template in the Code editor when you switch.

Note: Switching modes replaces the code with a mode-specific template — your previous code is not preserved. HTML mode renders in an iframe; React mode renders inline.

5. Handle React compilation errors

  1. In React mode, if your code contains a syntax error, the widget displays a Compilation Error message with a warning icon and error details.
  2. Other widgets on the dashboard are not affected.
  3. Fix the code in the Code editor and the widget automatically re-renders without a page refresh.

Result: Errors are contained to the widget and shown inline. The page does not crash.

Configure the display

6. Enable chromeless mode

  1. Open the Properties Panel and scroll down to the Layout section.
  2. Enable the Chromeless (fullscreen) toggle.
  3. Close the Properties Panel.

Result: The widget renders without a card border, background, or title — content fills the entire widget area. This is useful for custom visualizations that manage their own styling.

Setup guide

Schema information

Settings

No items found.

Troubleshooting

Troubleshooting guides

Check out troubleshooting guides for
Custom Component Widget
here:

Limits

Frequently asked questions

No items found.
☶ On this page
Description
Related articles
No items found.
No items found.

Questions?

Improvado team is always happy to help with any other questions you might have! Send us an email.

Contact your Customer Success Manager or raise a request in Improvado Service Desk.