[{"data":1,"prerenderedAt":1199},["ShallowReactive",2],{"navigation":3,"i-custom:logo":92,"i-lucide:search":96,"i-lucide:moon":98,"i-lucide:sun":100,"i-simple-icons:github":102,"i-lucide:menu":104,"i-lucide:house":106,"i-lucide:package":108,"i-lucide:play":110,"i-simple-icons:nuxtdotjs":112,"i-lucide:arrow-right-left":114,"i-lucide:square":116,"i-lucide:text-cursor-input":118,"i-lucide:message-circle-warning":120,"i-lucide:list":122,"i-lucide:code":124,"i-lucide:share-2":126,"i-lucide:shield-check":128,"i-lucide:chevron-down":130,"\u002Fcomposables\u002Fuse-not-form":132,"\u002Fcomposables\u002Fuse-not-form-surround":1188,"i-lucide:copy":1193,"i-lucide:text-align-start":1195,"i-lucide:hash":1197},[4,33,58,68,83],{"title":5,"path":6,"stem":7,"children":8,"icon":32},"Get Started","\u002Fget-started","1.get-started\u002F1.index",[9,12,17,22,27],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":13,"path":14,"stem":15,"icon":16},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-package",{"title":18,"path":19,"stem":20,"icon":21},"Quickstart","\u002Fget-started\u002Fquickstart","1.get-started\u002F3.quickstart","i-lucide-play",{"title":23,"path":24,"stem":25,"icon":26},"Nuxt Module","\u002Fget-started\u002Fnuxt-module","1.get-started\u002F4.nuxt-module","i-simple-icons-nuxtdotjs",{"title":28,"path":29,"stem":30,"icon":31},"Migrating to v2","\u002Fget-started\u002Fmigration","1.get-started\u002F5.migration","i-lucide-arrow-right-left",false,{"title":34,"icon":32,"path":35,"stem":36,"children":37,"page":32},"Components","\u002Fcomponents","2.components",[38,43,48,53],{"title":39,"path":40,"stem":41,"icon":42},"NotForm","\u002Fcomponents\u002Fnot-form","2.components\u002F1.not-form","i-lucide-square",{"title":44,"path":45,"stem":46,"icon":47},"NotField","\u002Fcomponents\u002Fnot-field","2.components\u002F2.not-field","i-lucide-text-cursor-input",{"title":49,"path":50,"stem":51,"icon":52},"NotMessage","\u002Fcomponents\u002Fnot-message","2.components\u002F3.not-message","i-lucide-message-circle-warning",{"title":54,"path":55,"stem":56,"icon":57},"NotArrayField","\u002Fcomponents\u002Fnot-array-field","2.components\u002F4.not-array-field","i-lucide-list",{"title":59,"icon":32,"path":60,"stem":61,"children":62,"page":32},"Composables","\u002Fcomposables","3.composables",[63],{"title":64,"path":65,"stem":66,"icon":67},"useNotForm","\u002Fcomposables\u002Fuse-not-form","3.composables\u002F1.use-not-form","i-lucide-code",{"title":69,"icon":32,"path":70,"stem":71,"children":72,"page":32},"Advanced","\u002Fadvanced","4.advanced",[73,78],{"title":74,"path":75,"stem":76,"icon":77},"Pinia & Composables","\u002Fadvanced\u002Fpinia-and-composables","4.advanced\u002F2.pinia-and-composables","i-lucide-share-2",{"title":79,"path":80,"stem":81,"icon":82},"Validation","\u002Fadvanced\u002Fvalidation","4.advanced\u002F3.validation","i-lucide-shield-check",{"title":84,"icon":32,"path":85,"stem":86,"children":87,"page":32},"Working with AI","\u002Fai","5.ai",[88],{"title":89,"path":90,"stem":91},"LLMs.txt","\u002Fai\u002Fllms-txt","5.ai\u002F1.llms-txt",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":95},0,24,"\u003Cg fill=\"none\">\u003C!--field 1-->\n  \u003Crect x=\"0.5\" y=\"0.5\" width=\"23\" height=\"3\" rx=\"0.3\" stroke=\"currentColor\" stroke-opacity=\"0.5\" stroke-width=\"0.3\"\u002F>\n\u003C!--field 2 — active-->\n  \u003Crect x=\"0.5\" y=\"4.3\" width=\"23\" height=\"3\" rx=\"0.3\" fill=\"currentColor\" fill-opacity=\"0.12\" stroke=\"currentColor\" stroke-opacity=\"0.75\" stroke-width=\"0.3\"\u002F>\n  \u003Crect x=\"1\" y=\"5.7\" width=\"8\" height=\"0.3\" rx=\"0.2\" fill=\"currentColor\" fill-opacity=\"0.5\"\u002F>\n\u003C!--field 3-->\n  \u003Crect x=\"0.5\" y=\"8.6\" width=\"23\" height=\"3\" rx=\"0.3\" stroke=\"currentColor\" stroke-opacity=\"0.5\" stroke-width=\"0.3\"\u002F>\n\u003C!--button-->\n  \u003Crect x=\"0.5\" y=\"12.9\" width=\"9.9\" height=\"3\" rx=\"0.3\" fill=\"currentColor\" fill-opacity=\"0.2\" stroke=\"currentColor\" stroke-width=\"0.2\"\u002F>\n  \u003Crect x=\"2.2\" y=\"14.3\" width=\"5.5\" height=\"0.4\" rx=\"0.2\" fill=\"currentColor\" fill-opacity=\"0.85\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":97},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m21 21l-4.34-4.34\"\u002F>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":99},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":101},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":103},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":105},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":107},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\"\u002F>\u003Cpath d=\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":109},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73zm1 .27V12\"\u002F>\u003Cpath d=\"M3.29 7L12 12l8.71-5M7.5 4.27l9 5.15\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":111},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":113},"\u003Cpath fill=\"currentColor\" d=\"M13.464 19.83h8.922c.283 0 .562-.073.807-.21a1.6 1.6 0 0 0 .591-.574a1.53 1.53 0 0 0 .216-.783a1.53 1.53 0 0 0-.217-.782L17.792 7.414a1.6 1.6 0 0 0-.591-.573a1.65 1.65 0 0 0-.807-.21c-.283 0-.562.073-.807.21a1.6 1.6 0 0 0-.59.573L13.463 9.99L10.47 4.953a1.6 1.6 0 0 0-.591-.573a1.65 1.65 0 0 0-.807-.21c-.284 0-.562.073-.807.21a1.6 1.6 0 0 0-.591.573L.216 17.481a1.53 1.53 0 0 0-.217.782c0 .275.074.545.216.783a1.6 1.6 0 0 0 .59.574c.246.137.525.21.808.21h5.6c2.22 0 3.856-.946 4.982-2.79l2.733-4.593l1.464-2.457l4.395 7.382h-5.859Zm-6.341-2.46l-3.908-.002l5.858-9.842l2.923 4.921l-1.957 3.29c-.748 1.196-1.597 1.632-2.916 1.632\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":115},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 3l4 4l-4 4m4-4H4m4 14l-4-4l4-4m-4 4h16\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":117},"\u003Crect width=\"18\" height=\"18\" x=\"3\" y=\"3\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" rx=\"2\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":119},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 20h-1a2 2 0 0 1-2-2a2 2 0 0 1-2 2H6m7-12h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7m-8 0H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1m1-4h1a2 2 0 0 1 2 2a2 2 0 0 1 2-2h1M9 6v12\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":121},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719M12 8v4m0 4h.01\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":123},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":125},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 18l6-6l-6-6M8 6l-6 6l6 6\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":127},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"18\" cy=\"5\" r=\"3\"\u002F>\u003Ccircle cx=\"6\" cy=\"12\" r=\"3\"\u002F>\u003Ccircle cx=\"18\" cy=\"19\" r=\"3\"\u002F>\u003Cpath d=\"m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":129},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"\u002F>\u003Cpath d=\"m9 12l2 2l4-4\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":131},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"id":133,"title":64,"body":134,"description":1182,"extension":1183,"meta":1184,"navigation":1185,"path":65,"seo":1186,"stem":66,"__hash__":1187},"docs\u002F3.composables\u002F1.use-not-form.md",{"type":135,"value":136,"toc":1164},"minimark",[137,142,217,221,302,306,311,338,342,369,373,395,399,440,443,480,484,518,522,540,544,548,792,796,999,1003,1160],[138,139,141],"h2",{"id":140},"signature","Signature",[143,144,149],"pre",{"className":145,"code":146,"language":147,"meta":148,"style":148},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","function useNotForm\u003CTSchema extends ObjectSchema>(\n  config: UseNotFormConfig\u003CTSchema>\n): NotFormInstance\u003CTSchema>\n","ts","",[150,151,152,182,202],"code",{"__ignoreMap":148},[153,154,157,161,165,169,173,176,179],"span",{"class":155,"line":156},"line",1,[153,158,160],{"class":159},"spNyl","function",[153,162,164],{"class":163},"s2Zo4"," useNotForm",[153,166,168],{"class":167},"sMK4o","\u003C",[153,170,172],{"class":171},"sBMFI","TSchema",[153,174,175],{"class":159}," extends",[153,177,178],{"class":171}," ObjectSchema",[153,180,181],{"class":167},">(\n",[153,183,185,189,192,195,197,199],{"class":155,"line":184},2,[153,186,188],{"class":187},"sHdIc","  config",[153,190,191],{"class":167},":",[153,193,194],{"class":171}," UseNotFormConfig",[153,196,168],{"class":167},[153,198,172],{"class":171},[153,200,201],{"class":167},">\n",[153,203,205,208,211,213,215],{"class":155,"line":204},3,[153,206,207],{"class":167},"):",[153,209,210],{"class":171}," NotFormInstance",[153,212,168],{"class":167},[153,214,172],{"class":171},[153,216,201],{"class":167},[138,218,220],{"id":219},"config","Config",[222,223,224,242,252,259,281,295],"field-group",{},[225,226,230],"field",{"name":227,"type":228,":required":229},"schema","MaybeRefOrGetter\u003CTSchema>","true",[231,232,233,234,237,238,241],"p",{},"Standard Schema compliant validation schema. Accepts a plain value, a ",[150,235,236],{},"ref",", or a ",[150,239,240],{},"computed"," — it is resolved on every validation run, so a reactive schema works correctly.",[225,243,246],{"name":244,"type":245},"initialValues","DeepPartial\u003CInferInput\u003CTSchema>>",[231,247,248,249,251],{},"Starting values for the form. Deeply cloned on init — mutating the original after calling ",[150,250,64],{}," has no effect.",[225,253,256],{"name":254,"type":255},"initialErrors","StandardSchemaV1.Issue[]",[231,257,258],{},"Errors to populate on creation. Useful when rendering server-side validation results on the initial load.",[225,260,263],{"name":261,"type":262},"validateOn","Partial\u003CRecord\u003CValidationTrigger, boolean>>",[231,264,265,266,269,270,269,273,276,277,280],{},"Which DOM events trigger field validation. Defaults: ",[150,267,268],{},"onBlur: true",", ",[150,271,272],{},"onChange: true",[150,274,275],{},"onInput: true",", everything else ",[150,278,279],{},"false",".",[225,282,285],{"name":283,"type":284},"validationMode","Partial\u003CRecord\u003C'eager' | 'lazy', boolean>>",[231,286,287,290,291,294],{},[150,288,289],{},"eager"," (default) — re-validates on input\u002Fchange while an error exists. ",[150,292,293],{},"lazy"," — validates only on blur or submit.",[225,296,299],{"name":297,"type":298},"onSubmit","(values: InferOutput\u003CTSchema>) => void | Promise\u003Cvoid>",[231,300,301],{},"Called after successful validation when the form is submitted. Receives the schema's validated output. Never called when validation fails.",[138,303,305],{"id":304},"return-value","Return value",[307,308,310],"h3",{"id":309},"values","Values",[222,312,313,331],{},[225,314,316],{"name":309,"type":315},"InferInput\u003CTSchema>",[231,317,318,319,322,323,326,327,330],{},"Deeply reactive form values. Access directly with ",[150,320,321],{},"form.values.email"," — no ",[150,324,325],{},".value"," needed. Use with ",[150,328,329],{},"v-model"," for two-way binding.",[225,332,335],{"name":333,"type":334},"setValue(path, value)","method",[231,336,337],{},"Sets a value by dot-separated path without triggering validation. Use this for programmatic updates or custom inputs.",[307,339,341],{"id":340},"touch","Touch",[222,343,344,351,360],{},[225,345,348],{"name":346,"type":347},"touchedFields","Set\u003CPaths\u003CTInput>>",[231,349,350],{},"The set of field paths the user has interacted with. All paths are populated when the form is submitted.",[225,352,355],{"name":353,"type":354},"isTouched","ComputedRef\u003Cboolean>",[231,356,357,359],{},[150,358,229],{}," when at least one field has been touched.",[225,361,363],{"name":362,"type":334},"touchField(path)",[231,364,365,366,280],{},"Marks a field as touched. Called automatically by ",[150,367,368],{},"onBlur",[307,370,372],{"id":371},"dirty","Dirty",[222,374,375,381,389],{},[225,376,378],{"name":377,"type":347},"dirtyFields",[231,379,380],{},"The set of field paths whose current value differs from the initial value.",[225,382,384],{"name":383,"type":354},"isDirty",[231,385,386,388],{},[150,387,229],{}," when at least one field is dirty.",[225,390,392],{"name":391,"type":334},"dirtyField(path)",[231,393,394],{},"Marks a field as dirty. Called automatically when a value changes.",[307,396,398],{"id":397},"errors","Errors",[222,400,401,406,416,422,428,434],{},[225,402,403],{"name":397,"type":255},[231,404,405],{},"The raw issues from the last validation run. Reactive array — use the provided methods to mutate it.",[225,407,410],{"name":408,"type":409},"errorsMap","ComputedRef\u003CPartial\u003CRecord\u003CPaths, string>>>",[231,411,412,413,280],{},"Flat map of field path to its first error message. Use for direct template access without calling ",[150,414,415],{},"getFieldErrors",[225,417,419],{"name":418,"type":334},"setError(issue)",[231,420,421],{},"Replaces the existing error for the same path, or appends it if none exists.",[225,423,425],{"name":424,"type":334},"setErrors(issues)",[231,426,427],{},"Replaces all current errors at once.",[225,429,431],{"name":430,"type":334},"clearErrors()",[231,432,433],{},"Removes all active errors.",[225,435,437],{"name":436,"type":334},"getFieldErrors(path)",[231,438,439],{},"Returns all issues for a specific field path.",[307,441,79],{"id":442},"validation",[222,444,445,454,465,472],{},[225,446,449],{"name":447,"type":448},"isValidating","Ref\u003Cboolean>",[231,450,451,453],{},[150,452,229],{}," while any validation run is in progress.",[225,455,458],{"name":456,"type":457},"validate()","() => Promise\u003CStandardSchemaV1.Result>",[231,459,460,461,464],{},"Runs the full schema. Replaces all errors with the result. Returns the schema result — check ",[150,462,463],{},"result.issues"," to determine pass\u002Ffail.",[225,466,469],{"name":467,"type":468},"validateField(path)","(path) => Promise\u003CStandardSchemaV1.Result>",[231,470,471],{},"Runs the full schema but only updates errors for the given field. All other field errors are left untouched.",[225,473,475],{"name":474,"type":354},"isValid",[231,476,477,479],{},[150,478,229],{}," when there are no active errors.",[307,481,483],{"id":482},"submission","Submission",[222,485,486,507],{},[225,487,490],{"name":488,"type":489},"submit(event)","(event: Event) => Promise\u003Cvoid>",[231,491,492,493,495,496,499,500,502,503,506],{},"Marks all fields as touched and dirty, validates the form, then calls ",[150,494,297],{}," if validation passes. Calls ",[150,497,498],{},"event.preventDefault()"," when validation fails or when ",[150,501,297],{}," is defined. Bind to ",[150,504,505],{},"@submit"," on the form element.",[225,508,510],{"name":509,"type":448},"isSubmitting",[231,511,512,514,515,517],{},[150,513,229],{}," while ",[150,516,297],{}," is running.",[307,519,521],{"id":520},"reset","Reset",[222,523,524],{},[225,525,527],{"name":526,"type":334},"reset(values?, errors?)",[231,528,529,530,532,533,535,536,539],{},"Restores the form to its initial state. Clears all errors, touched fields, and dirty fields. If ",[150,531,309],{}," or ",[150,534,397],{}," are passed, they replace the stored baseline — the next call to ",[150,537,538],{},"reset()"," with no arguments returns to these new values.",[138,541,543],{"id":542},"examples","Examples",[307,545,547],{"id":546},"reactive-schema","Reactive schema",[143,549,551],{"className":145,"code":550,"language":147,"meta":148,"style":148},"const requireAddress = ref(false)\n\nconst schema = computed(() =>\n  z.object({\n    name: z.string().min(2),\n    address: requireAddress.value\n      ? z.string().min(1)\n      : z.string().optional(),\n  })\n)\n\nconst form = useNotForm({ schema, initialValues: { name: '', address: '' } })\n",[150,552,553,577,583,603,619,655,671,696,719,727,732,737],{"__ignoreMap":148},[153,554,555,558,562,565,568,571,574],{"class":155,"line":156},[153,556,557],{"class":159},"const",[153,559,561],{"class":560},"sTEyZ"," requireAddress ",[153,563,564],{"class":167},"=",[153,566,567],{"class":163}," ref",[153,569,570],{"class":560},"(",[153,572,279],{"class":573},"sfNiH",[153,575,576],{"class":560},")\n",[153,578,579],{"class":155,"line":184},[153,580,582],{"emptyLinePlaceholder":581},true,"\n",[153,584,585,587,590,592,595,597,600],{"class":155,"line":204},[153,586,557],{"class":159},[153,588,589],{"class":560}," schema ",[153,591,564],{"class":167},[153,593,594],{"class":163}," computed",[153,596,570],{"class":560},[153,598,599],{"class":167},"()",[153,601,602],{"class":159}," =>\n",[153,604,606,609,611,614,616],{"class":155,"line":605},4,[153,607,608],{"class":560},"  z",[153,610,280],{"class":167},[153,612,613],{"class":163},"object",[153,615,570],{"class":560},[153,617,618],{"class":167},"{\n",[153,620,622,626,628,631,633,636,638,640,643,645,649,652],{"class":155,"line":621},5,[153,623,625],{"class":624},"swJcz","    name",[153,627,191],{"class":167},[153,629,630],{"class":560}," z",[153,632,280],{"class":167},[153,634,635],{"class":163},"string",[153,637,599],{"class":560},[153,639,280],{"class":167},[153,641,642],{"class":163},"min",[153,644,570],{"class":560},[153,646,648],{"class":647},"sbssI","2",[153,650,651],{"class":560},")",[153,653,654],{"class":167},",\n",[153,656,658,661,663,666,668],{"class":155,"line":657},6,[153,659,660],{"class":624},"    address",[153,662,191],{"class":167},[153,664,665],{"class":560}," requireAddress",[153,667,280],{"class":167},[153,669,670],{"class":560},"value\n",[153,672,674,677,679,681,683,685,687,689,691,694],{"class":155,"line":673},7,[153,675,676],{"class":167},"      ?",[153,678,630],{"class":560},[153,680,280],{"class":167},[153,682,635],{"class":163},[153,684,599],{"class":560},[153,686,280],{"class":167},[153,688,642],{"class":163},[153,690,570],{"class":560},[153,692,693],{"class":647},"1",[153,695,576],{"class":560},[153,697,699,702,704,706,708,710,712,715,717],{"class":155,"line":698},8,[153,700,701],{"class":167},"      :",[153,703,630],{"class":560},[153,705,280],{"class":167},[153,707,635],{"class":163},[153,709,599],{"class":560},[153,711,280],{"class":167},[153,713,714],{"class":163},"optional",[153,716,599],{"class":560},[153,718,654],{"class":167},[153,720,722,725],{"class":155,"line":721},9,[153,723,724],{"class":167},"  }",[153,726,576],{"class":560},[153,728,730],{"class":155,"line":729},10,[153,731,576],{"class":560},[153,733,735],{"class":155,"line":734},11,[153,736,582],{"emptyLinePlaceholder":581},[153,738,740,742,745,747,749,751,754,757,760,763,765,768,771,773,776,778,781,783,785,788,790],{"class":155,"line":739},12,[153,741,557],{"class":159},[153,743,744],{"class":560}," form ",[153,746,564],{"class":167},[153,748,164],{"class":163},[153,750,570],{"class":560},[153,752,753],{"class":167},"{",[153,755,756],{"class":560}," schema",[153,758,759],{"class":167},",",[153,761,762],{"class":624}," initialValues",[153,764,191],{"class":167},[153,766,767],{"class":167}," {",[153,769,770],{"class":624}," name",[153,772,191],{"class":167},[153,774,775],{"class":167}," ''",[153,777,759],{"class":167},[153,779,780],{"class":624}," address",[153,782,191],{"class":167},[153,784,775],{"class":167},[153,786,787],{"class":167}," }",[153,789,787],{"class":167},[153,791,576],{"class":560},[307,793,795],{"id":794},"server-side-errors-after-submit","Server-side errors after submit",[143,797,799],{"className":145,"code":798,"language":147,"meta":148,"style":148},"const form = useNotForm({\n  schema,\n  onSubmit: async (values) => {\n    try {\n      await $fetch('\u002Fapi\u002Fsignup', { method: 'POST', body: values })\n    } catch {\n      form.setError({\n        path: [{ key: 'email' }],\n        message: 'This email is already registered',\n      })\n    }\n  },\n})\n",[150,800,801,815,822,845,853,903,913,927,958,974,981,986,991],{"__ignoreMap":148},[153,802,803,805,807,809,811,813],{"class":155,"line":156},[153,804,557],{"class":159},[153,806,744],{"class":560},[153,808,564],{"class":167},[153,810,164],{"class":163},[153,812,570],{"class":560},[153,814,618],{"class":167},[153,816,817,820],{"class":155,"line":184},[153,818,819],{"class":560},"  schema",[153,821,654],{"class":167},[153,823,824,827,829,832,835,837,839,842],{"class":155,"line":204},[153,825,826],{"class":163},"  onSubmit",[153,828,191],{"class":167},[153,830,831],{"class":159}," async",[153,833,834],{"class":167}," (",[153,836,309],{"class":187},[153,838,651],{"class":167},[153,840,841],{"class":159}," =>",[153,843,844],{"class":167}," {\n",[153,846,847,851],{"class":155,"line":605},[153,848,850],{"class":849},"s7zQu","    try",[153,852,844],{"class":167},[153,854,855,858,861,863,866,870,872,874,876,879,881,884,887,889,891,894,896,899,901],{"class":155,"line":621},[153,856,857],{"class":849},"      await",[153,859,860],{"class":163}," $fetch",[153,862,570],{"class":624},[153,864,865],{"class":167},"'",[153,867,869],{"class":868},"sfazB","\u002Fapi\u002Fsignup",[153,871,865],{"class":167},[153,873,759],{"class":167},[153,875,767],{"class":167},[153,877,878],{"class":624}," method",[153,880,191],{"class":167},[153,882,883],{"class":167}," '",[153,885,886],{"class":868},"POST",[153,888,865],{"class":167},[153,890,759],{"class":167},[153,892,893],{"class":624}," body",[153,895,191],{"class":167},[153,897,898],{"class":560}," values",[153,900,787],{"class":167},[153,902,576],{"class":624},[153,904,905,908,911],{"class":155,"line":657},[153,906,907],{"class":167},"    }",[153,909,910],{"class":849}," catch",[153,912,844],{"class":167},[153,914,915,918,920,923,925],{"class":155,"line":673},[153,916,917],{"class":560},"      form",[153,919,280],{"class":167},[153,921,922],{"class":163},"setError",[153,924,570],{"class":624},[153,926,618],{"class":167},[153,928,929,932,934,937,939,942,944,946,949,951,953,956],{"class":155,"line":698},[153,930,931],{"class":624},"        path",[153,933,191],{"class":167},[153,935,936],{"class":624}," [",[153,938,753],{"class":167},[153,940,941],{"class":624}," key",[153,943,191],{"class":167},[153,945,883],{"class":167},[153,947,948],{"class":868},"email",[153,950,865],{"class":167},[153,952,787],{"class":167},[153,954,955],{"class":624},"]",[153,957,654],{"class":167},[153,959,960,963,965,967,970,972],{"class":155,"line":721},[153,961,962],{"class":624},"        message",[153,964,191],{"class":167},[153,966,883],{"class":167},[153,968,969],{"class":868},"This email is already registered",[153,971,865],{"class":167},[153,973,654],{"class":167},[153,975,976,979],{"class":155,"line":729},[153,977,978],{"class":167},"      }",[153,980,576],{"class":624},[153,982,983],{"class":155,"line":734},[153,984,985],{"class":167},"    }\n",[153,987,988],{"class":155,"line":739},[153,989,990],{"class":167},"  },\n",[153,992,994,997],{"class":155,"line":993},13,[153,995,996],{"class":167},"}",[153,998,576],{"class":560},[307,1000,1002],{"id":1001},"programmatic-validation","Programmatic validation",[143,1004,1006],{"className":145,"code":1005,"language":147,"meta":148,"style":148},"\u002F\u002F Full form\nconst result = await form.validate()\nif (result.issues) {\n  console.log('Failed:', result.issues)\n} else {\n  console.log('Output:', result.value) \u002F\u002F Typed schema output\n}\n\n\u002F\u002F Single field\nawait form.validateField('email')\n",[150,1007,1008,1014,1037,1052,1083,1092,1124,1129,1133,1138],{"__ignoreMap":148},[153,1009,1010],{"class":155,"line":156},[153,1011,1013],{"class":1012},"sHwdD","\u002F\u002F Full form\n",[153,1015,1016,1018,1021,1023,1026,1029,1031,1034],{"class":155,"line":184},[153,1017,557],{"class":159},[153,1019,1020],{"class":560}," result ",[153,1022,564],{"class":167},[153,1024,1025],{"class":849}," await",[153,1027,1028],{"class":560}," form",[153,1030,280],{"class":167},[153,1032,1033],{"class":163},"validate",[153,1035,1036],{"class":560},"()\n",[153,1038,1039,1042,1045,1047,1050],{"class":155,"line":204},[153,1040,1041],{"class":849},"if",[153,1043,1044],{"class":560}," (result",[153,1046,280],{"class":167},[153,1048,1049],{"class":560},"issues) ",[153,1051,618],{"class":167},[153,1053,1054,1057,1059,1062,1064,1066,1069,1071,1073,1076,1078,1081],{"class":155,"line":605},[153,1055,1056],{"class":560},"  console",[153,1058,280],{"class":167},[153,1060,1061],{"class":163},"log",[153,1063,570],{"class":624},[153,1065,865],{"class":167},[153,1067,1068],{"class":868},"Failed:",[153,1070,865],{"class":167},[153,1072,759],{"class":167},[153,1074,1075],{"class":560}," result",[153,1077,280],{"class":167},[153,1079,1080],{"class":560},"issues",[153,1082,576],{"class":624},[153,1084,1085,1087,1090],{"class":155,"line":621},[153,1086,996],{"class":167},[153,1088,1089],{"class":849}," else",[153,1091,844],{"class":167},[153,1093,1094,1096,1098,1100,1102,1104,1107,1109,1111,1113,1115,1118,1121],{"class":155,"line":657},[153,1095,1056],{"class":560},[153,1097,280],{"class":167},[153,1099,1061],{"class":163},[153,1101,570],{"class":624},[153,1103,865],{"class":167},[153,1105,1106],{"class":868},"Output:",[153,1108,865],{"class":167},[153,1110,759],{"class":167},[153,1112,1075],{"class":560},[153,1114,280],{"class":167},[153,1116,1117],{"class":560},"value",[153,1119,1120],{"class":624},") ",[153,1122,1123],{"class":1012},"\u002F\u002F Typed schema output\n",[153,1125,1126],{"class":155,"line":673},[153,1127,1128],{"class":167},"}\n",[153,1130,1131],{"class":155,"line":698},[153,1132,582],{"emptyLinePlaceholder":581},[153,1134,1135],{"class":155,"line":721},[153,1136,1137],{"class":1012},"\u002F\u002F Single field\n",[153,1139,1140,1143,1145,1147,1150,1152,1154,1156,1158],{"class":155,"line":729},[153,1141,1142],{"class":849},"await",[153,1144,1028],{"class":560},[153,1146,280],{"class":167},[153,1148,1149],{"class":163},"validateField",[153,1151,570],{"class":560},[153,1153,865],{"class":167},[153,1155,948],{"class":868},[153,1157,865],{"class":167},[153,1159,576],{"class":560},[1161,1162,1163],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":148,"searchDepth":156,"depth":184,"links":1165},[1166,1167,1168,1177],{"id":140,"depth":184,"text":141},{"id":219,"depth":184,"text":220},{"id":304,"depth":184,"text":305,"children":1169},[1170,1171,1172,1173,1174,1175,1176],{"id":309,"depth":204,"text":310},{"id":340,"depth":204,"text":341},{"id":371,"depth":204,"text":372},{"id":397,"depth":204,"text":398},{"id":442,"depth":204,"text":79},{"id":482,"depth":204,"text":483},{"id":520,"depth":204,"text":521},{"id":542,"depth":184,"text":543,"children":1178},[1179,1180,1181],{"id":546,"depth":204,"text":547},{"id":794,"depth":204,"text":795},{"id":1001,"depth":204,"text":1002},"Creates and returns a fully typed, reactive form instance.","md",{},{"icon":67},{"title":64,"description":1182},"QDDxZnwotG2cf9j1ouAHIB9s2KIa6LS41p7PROPFQyU",[1189,1191],{"title":54,"path":55,"stem":56,"description":1190,"icon":57,"children":-1},"Renderless array wrapper with stable item keys and full mutation methods.",{"title":74,"path":75,"stem":76,"description":1192,"icon":77,"children":-1},"Share form instances across components using Pinia stores or dedicated composables.",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":1194},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":1196},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 5H3m12 7H3m14 7H3\"\u002F>",{"left":93,"top":93,"width":94,"height":94,"rotate":93,"vFlip":32,"hFlip":32,"body":1198},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\"\u002F>",1776950606568]