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.

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

import { cn } from "@/utils/cn";

interface ClearButtonProps {
  className?: string;
  dataTestId?: string;
  onClick: () => void;
}

export const ClearButton: React.FC<ClearButtonProps> = (props) => (
  <button
    type="button"
    data-testid={props.dataTestId}
    className={cn(
      "text-xs font-semibold text-accent-foreground",
      props.className,
    )}
    onClick={props.onClick}
  >
    Clear
  </button>
);