import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Command } from ".";

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
  title: "Example/Command",
  component: Command,
} as ComponentMeta<typeof Command>;

// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
export const Template: ComponentStory<typeof Command> = (args) => (
  <div>
    <Command>
      <Command.CommandInput
        placeholder="hello"
        onChange={(v) => console.log(v)}
      />
    </Command>
  </div>
);
