import { jsx as _jsx } from "react/jsx-runtime";
import { useState } from "react";
import { Toggle } from "./toggle.js";
const meta = {
    title: "Connect/Components/Toggle",
    component: Toggle,
};
export default meta;
export const Default = {
    args: {
        id: "toggle",
        name: "Toggle",
    },
    render: function Wrapper(args) {
        const [checked, setChecked] = useState(false);
        return (_jsx(Toggle, { ...args, checked: checked, onChange: () => setChecked(!checked) }));
    },
};
//# sourceMappingURL=toggle.stories.js.map