Engineering15 November 20268 min read

Iframe, Web Component or SDK: How to Embed a Help Desk or Roadmap

Three ways to put a third-party help desk, roadmap or changelog inside your site, compared on styling, accessibility, search and effort, with a way to choose.

Three ways to put someone else's page inside yours

Sooner or later a product team wants a support form, a roadmap or a changelog inside its own site, and the tool that holds the data is a different product. There are three common ways to do it, and they trade effort against control in a predictable way: an iframe, a web component, and a framework SDK built on a typed client. None is the right answer everywhere. This post compares them on the things that decide the outcome, so you can pick one on purpose. We build Decuga's embed options, so we describe all three, including the one that asks the most of you.

The iframe: quickest, and the least yours

An iframe shows another address inside a rectangle on your page. It is the fastest route, because the vendor builds and maintains everything inside the frame, and you paste one tag. The price is that the frame is a separate page. It does not inherit your fonts, colours or dark mode. Its height has to be set, or kept in step by script, or it shows its own scroll bar inside yours. Keyboard focus and screen readers treat it as another document. And content in a frame is usually credited to the framed address and not to your page. For a support form that a few people use, none of that may matter. For a page you want to look like part of your product, it usually does.

  • ✓Effort: one tag
  • ✓Styling: only what the vendor offers, because the page inside is theirs
  • ✓Layout: a fixed or script-managed height, and a second scroll area if you get it wrong
  • ✓Search: the words belong to the framed address

The web component: your page, their behaviour

A web component is a custom HTML tag that a script defines. You add one script and write the tag, and the vendor's code draws the widget inside your page. It sits in your layout, flows with your content and can be styled through the properties and parts the vendor exposes, such as a colour variable. Because it uses the browser's own standard, it works in any framework or none. Its shadow root keeps your CSS from breaking it, and its CSS from leaking out, which is a fair trade for a widget you did not write. The limits are that it draws in the browser, so a search engine that does not run script sees an empty tag, and you style only what the vendor exposes.

  • ✓Effort: one script and one tag
  • ✓Styling: custom properties and named parts, within what the vendor allows
  • ✓Layout: part of your page, no inner scroll area
  • ✓Search: drawn in the browser, so not the way to get text indexed

The framework SDK: your markup, their data

A framework SDK goes one level down. Instead of a finished widget you get the data and the actions as hooks or composables, and sometimes a component that draws plain markup in your page. You write the elements, your design system styles them, and the vendor's code handles loading, errors, sign-in and sending. Because the markup is yours, it can be drawn on a server, tested like the rest of your code and made as accessible as your own components. It costs the most effort, and it ties you to the framework, but it is the only option where the page is fully yours.

  • ✓Effort: the most, because you draw the screens
  • ✓Styling: anything, since the markup is yours
  • ✓Layout: whatever you build
  • ✓Search: can be drawn on the server, so the text is in the HTML you send

Side by side

The three differ most on how much of the page is yours. This table puts them next to each other on the points that usually decide.

IframeWeb componentFramework SDK
Time to first resultMinutesMinutesHours to days
Looks like your productRarelyWith the exposed stylingFully
Works in any frameworkYesYesOnly the supported ones
Text in the HTML you sendNoNoYes, if drawn on the server
Accessibility you controlLittleSomeAll of it
UpgradesAutomaticOn a version bumpOn a version bump, and your markup may need changes

Effort against control

Moving right costs more work. Moving up gives you more of the page.

A lotControlLittle

Web component

Low effort, with colours, fonts and parts under your control.

Framework SDK

More effort, and the markup, the server render and the accessibility are yours.

Iframe

The least effort, and the least say in how it looks.

Worth avoiding

High effort for little control. If you are writing the screens yourself, make them fully yours.

LowEffortHigh

How to choose

Start from what the page is for and who looks at it. If it is a support form that few people open, an iframe is a sensible choice, and it is the simplest thing to maintain. If it is a page you want to look like your product and you are not in a framework the vendor supports, use a web component. If the page matters to your brand or your search presence, and you are in React or Vue, build on the SDK and draw it on the server. You can also mix: many teams use a web component for the helpdesk and a server-drawn component for the changelog, because the changelog is the page they want read by search engines.

  • ✓Few visitors and no brand need: an iframe
  • ✓A branded page in any framework, or none: a web component
  • ✓A page that must be indexed, or match your design system exactly: a framework SDK or the client
  • ✓Not sure: start with the web component, and replace one screen at a time

You can move later

The options are not exclusive. Decuga's web components, React and Vue packages and client share one core, so replacing a widget with your own screens later means changing the markup, not the project, the data or what your team does in Decuga.

What this looks like with Decuga

Decuga's helpdesk forms have long had an iframe snippet, and it still works. The SDKs add the other two routes: web components for plain HTML, Angular, Svelte, Solid and Astro, and React and Vue packages with components and hooks, all on a typed client that you can also use on a server. They show the same public changelog, roadmap and portal your team already runs, so choosing a route changes how the page is drawn and not what is behind it. The documentation covers each route with working examples.

Ready to try Decuga?

Start free - no account or credit card required. One week free trial of the Business plan.

Start free trial