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 { MenuIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
import { SidebarSlot } from "./sidebar-slot";
interface SheetMenuProps {
/**
* The maximum width of the sidebar when it is open.
*/
openWidth: string;
}
export const SheetMenu = ({ openWidth }: SheetMenuProps) => {
return (
<Sheet>
<SheetTrigger className="lg:hidden" asChild={true}>
<Button variant="ghost" className="bg-background">
<MenuIcon className="w-5 h-5" />
</Button>
</SheetTrigger>
<SheetContent
className="w-full px-3 h-full flex flex-col overflow-y-auto"
style={{ maxWidth: openWidth }}
side="left"
>
<SidebarSlot />
</SheetContent>
</Sheet>
);
};