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 { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
export default {
title: "Input",
component: Input,
};
export const Default = {
render: () => <Input type="email" className="w-1/4" placeholder="Email" />,
name: "Default",
};
export const Disabled = {
render: () => (
<Input disabled={true} type="email" className="w-1/4" placeholder="Email" />
),
name: "Disabled",
};
export const WithLabel = {
render: () => (
<div className="grid w-full max-w-sm items-center gap-1.5">
<Label htmlFor="email">Email</Label>
<Input type="email" id="email" placeholder="Email" />
</div>
),
name: "With Label",
};
export const WithText = {
render: () => (
<div className="grid w-full max-w-sm items-center gap-1.5">
<Label htmlFor="email-2">Email</Label>
<Input type="email" id="email-2" placeholder="Email" />
<p className="text-sm text-muted-foreground">Enter your email address.</p>
</div>
),
name: "With Text",
};
export const WithButton = {
render: () => (
<div className="flex w-full max-w-sm items-center space-x-2">
<Input type="email" placeholder="Email" />
<Button type="submit">Subscribe</Button>
</div>
),
name: "With Button",
};