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 { Label } from "@/components/ui/label";
import { NumberField } from "@/components/ui/number-field";
export default {
title: "NumberField",
component: NumberField,
};
export const Default = {
render: () => <NumberField placeholder="..." />,
name: "Default",
};
export const Disabled = {
render: () => <NumberField placeholder="..." isDisabled={true} />,
name: "Disabled",
};
export const WithLabel = {
render: () => (
<div className="grid w-full gap-1.5">
<Label htmlFor="message">Your message</Label>
<NumberField placeholder="..." id="message" />
</div>
),
name: "With Label",
};
export const MinAndMax = {
render: () => (
<div className="grid w-full gap-1.5">
<NumberField placeholder="..." minValue={-10} maxValue={100} />
<NumberField placeholder="..." minValue={10} maxValue={100} />
</div>
),
name: "Min and Max",
};