Skip to content

StackBlitz Embed#

View Markdown

StackBlitz embeds are opt-in through the built-in embed options.

import { oxContent } from "@ox-content/vite-plugin";

export default {
  plugins: [
    oxContent({
      embeds: {
        stackBlitz: true,
      },
    }),
  ],
};
<StackBlitz url="https://stackblitz.com/edit/vitejs-vite-abc123"></StackBlitz>

The transform appends embed=1 and renders a sandboxed iframe.

Last updated: