A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
/* Copyright 2026 Marimo. All rights reserved. */
import { memo } from "react";
import { renderHTML } from "../../../plugins/core/RenderHTML";
import { cn } from "../../../utils/cn";
interface Props {
html: string;
alwaysSanitizeHtml: boolean;
inline?: boolean;
className?: string;
}
export const HtmlOutput: React.FC<Props> = memo(
({ html, inline = false, className, alwaysSanitizeHtml }) => {
if (!html) {
return null;
}
return (
<div className={cn(className, { "inline-flex": inline, block: !inline })}>
{renderHTML({ html, alwaysSanitizeHtml })}
</div>
);
},
);
HtmlOutput.displayName = "HtmlOutput";