Skip to content

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.

541 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */

import type { JSX } from "react";
import type { IPlugin } from "./types";

export interface IStatelessPluginProps<D> {
  /**
   * Host element.
   */
  host: HTMLElement;

  /**
   * Plugin data.
   */
  data: D;

  /**
   * Children elements.
   */
  children?: React.ReactNode | undefined;
}

export interface IStatelessPlugin<D> extends Omit<
  IPlugin<never, D>,
  "render" | "functions"
> {
  /**
   * Render the plugin.
   */
  render(props: IStatelessPluginProps<D>): JSX.Element;
}