import type { Meta, StoryObj } from "@storybook/react";

import { Switch } from ".";

const meta: Meta<typeof Switch> = {
  title: "Example/Switch",
  component: Switch,
};

type Story = StoryObj<typeof Switch>;

export const Primary: Story = {
  render: () => (
    <form>
      <Switch
        data-id="nick"
        data-component="Switch$Brevity"
        value={"Click Me"}
        onChange={(v) => console.log("change", v)}
      >
        This is a label
      </Switch>
    </form>
  ),
};

export default meta;
