diff --git a/app/forms/actionless/form.tsx b/app/forms/actionless/form.tsx new file mode 100644 index 0000000..2efb1e8 --- /dev/null +++ b/app/forms/actionless/form.tsx @@ -0,0 +1,34 @@ +'use client' + +import { useForm } from '@' +import { actionlessSchema } from './schema' + +export const ActionlessForm = () => { + const { connect, bindField, isPending, fieldErrors } = useForm({ + schema: actionlessSchema, + onSubmit: async (values) => { + console.log('Submitting form with values:', values) + return true + } + }) + + return ( +
+ + + {fieldErrors.name &&
{fieldErrors.name.first}
} +
+ +