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.

1.1 KB
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import type { Meta, StoryFn } from "@storybook/react-vite";
import { PlayIcon } from "lucide-react";
import { Button, Input } from "../components/editor/inputs/Inputs";

export default {
  title: "Editor Inputs",
  component: Button,
} as Meta;

const ButtonTemplate: StoryFn<typeof Button> = (args) => (
  <div className="m-4">
    <Button {...args}>
      <PlayIcon strokeWidth={1.5} size={16} />
    </Button>
  </div>
);
export const ButtonStory = ButtonTemplate.bind({});
ButtonStory.argTypes = {
  color: {
    type: {
      name: "enum",
      value: ["gray", "green", "red", "yellow", "hint-green"],
    },
  },
  size: {
    type: {
      name: "enum",
      value: ["small", "medium"],
    },
  },
  shape: {
    type: {
      name: "enum",
      value: ["circle", "rectangle"],
    },
  },
  onClick: { action: "clicked" },
};

const InputTemplate: StoryFn<typeof Input> = (args) => (
  <div className="m-4">
    <Input {...args} id="filename-input" className="filename" />
  </div>
);
export const InputStory = InputTemplate.bind({});
InputStory.args = {};