For PCB suppliers & kit retailers

Embed Widget

Let customers preview your enclosure layout directly on your product page. Add a single <iframe> tag and you're done.

How to embed

Three steps to a live preview

Create a layout, copy the embed code from the Share menu, and paste it into your HTML.

1

Create a project & make it public

Open the app, design your layout, then open the Share menu and toggle your project to Public so anyone can view it.

2

Copy the embed code

In the Share menu, click Copy next to the embed code. The snippet already contains your project ID.

3

Paste into your HTML

Add the <iframe> snippet to your product page HTML. That's it. No extra configuration needed.

Embed code

Copy and paste

The Share menu gives you a ready-to-paste snippet. You can also copy the template below and replace YOUR_PROJECT_ID with your project's UUID. It shows a slowly rotating 3D view of the enclosure, with every hole drilled and each component seated in place.

<iframe
  src="https://app.stompboxlayout.com/embed/YOUR_PROJECT_ID/3d"
  width="100%"
  height="500"
  style="border: none; border-radius: 8px;"
  loading="lazy"
  allow="fullscreen"
  title="Stompbox Layout 3D preview"
></iframe>

Options

Query parameters

Append these to the embed URL to customise the widget appearance.

Parameter Values Description
theme light | dark Sets the widget colour scheme. Light by default, which suits most pages the widget is dropped into.
footprints true | false Show the part that goes in each hole. On by default.
knobs true | false Draw the knobs fitted to the pots. Off by default. Turn them on to show the finished pedal.
view outside | inside Start looking at the outside of the enclosure (the default) or up into the open enclosure to see how the parts sit inside.
xray true | false Make the enclosure walls see-through so the components read through the shell. Off by default.
clearance true | false Shade parts that clash into each other in red. Off by default, so an embedded layout shows the build rather than the working notes. Turn it on if you are sharing a layout for feedback.
<!-- Dark theme, with knobs -->
src="https://app.stompboxlayout.com/embed/YOUR_PROJECT_ID/3d?theme=dark&knobs=true"

<!-- Inside, see-through, dark theme -->
src="https://app.stompboxlayout.com/embed/YOUR_PROJECT_ID/3d?view=inside&xray=true&theme=dark&knobs=true"

Live demo

See it in action

A real embedded project, exactly what your customers will see.