"use client";
import { j as e } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import s from "./Toggle.module.scss.mjs";
function i({
  labelPosition: t = "left",
  disabled: a,
  children: l,
  ...n
}) {
  return /* @__PURE__ */ e.jsxs("label", { className: s.switch, children: [
    t === "left" ? l : null,
    /* @__PURE__ */ e.jsxs("div", { className: s.switchContainer, children: [
      /* @__PURE__ */ e.jsx(
        "input",
        {
          type: "checkbox",
          ...n,
          disabled: a,
          className: `${s.inputCheckbox}`
        }
      ),
      /* @__PURE__ */ e.jsx("span", { className: `${s.slider} ${s.round}` })
    ] }),
    t === "right" ? l : null
  ] });
}
export {
  i as default
};
//# sourceMappingURL=index.mjs.map
