UNPKG

@payfit/unity-components

Version:

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