You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/ui-and-theme/Forms.mdx
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Let's say you want to create a form that allows the user to log in to the applic
36
36
The right way to validate a form is to create a schema validation. You can use any library you want but we recommend using zod as you can easily infer the types from the schema. Here is how you can create a schema validation for the login form:
37
37
38
38
```tsx
39
-
import*aszfrom'zod';
39
+
importzfrom'zod';
40
40
41
41
const schema =z.object({
42
42
email: z.string().email(),
@@ -53,9 +53,8 @@ Here is how you can create your login screen:
0 commit comments