UNPKG

@mitcsutt/kiln-forms

Version:

Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui

17 lines (16 loc) • 351 B
//#region src/runtime/visibility.ts function e(e, t, n) { if (typeof e == "function") return e({ meta: t, submitted: n }); if (n) return !0; switch (e) { case "blur": return t.isBlurred; case "change": return t.isTouched; case "submit": return !1; } } //#endregion export { e as isErrorVisible }; //# sourceMappingURL=visibility.js.map