UNPKG

@payfit/unity-components

Version:

21 lines (20 loc) • 791 B
import { FormField as e } from "../form-field/FormField.js"; import { FormFeedbackText as t } from "../form-field/parts/FormFeedbackText.js"; import { ToggleSwitch as n } from "../toggle-switch/ToggleSwitch.js"; import { forwardRef as r } from "react"; import { jsx as i, jsxs as a } from "react/jsx-runtime"; //#region src/modules/tanstack-form/components/toggle-switch-field/ToggleSwitchField.tsx function o({ label: r, switchHelperText: o, isDisabled: s, isReadOnly: c, isLabelSrOnly: l }, u) { return /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ i(n, { ref: u, label: r, helperText: o, isLabelSrOnly: l, isDisabled: s, isReadOnly: c }), /* @__PURE__ */ i(t, {})] }); } var s = r(o); s.displayName = "ToggleSwitchField"; //#endregion export { s as ToggleSwitchField };