UNPKG

@payfit/unity-components

Version:

25 lines (24 loc) • 871 B
import { Checkbox as e } from "../checkbox/Checkbox.js"; import { FormField as t } from "../form-field/FormField.js"; import { FormFeedbackText as n } from "../form-field/parts/FormFeedbackText.js"; import { forwardRef as r } from "react"; import { jsx as i, jsxs as a } from "react/jsx-runtime"; //#region src/modules/tanstack-form/components/checkbox-field/CheckboxField.tsx function o({ children: r, helperText: o, contextualLink: s, isRequired: c, isDisabled: l, isReadOnly: u, requiredVariant: d, value: f, ...p }, m) { return /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ i(e, { ref: m, value: f, requiredVariant: d, helperText: o, feedbackText: /* @__PURE__ */ i(n, {}), ...p, isDisabled: l, isReadOnly: u, isRequired: c, children: r }), s] }); } var s = r(o); s.displayName = "CheckboxField"; //#endregion export { s as CheckboxField };