@lunarhue/forms
Forms for React and Solid, with the form logic in one small core.
v0.2.0 · TypeScript · MIT
We wrote the first version for a grant application portal with forms that ran 40 fields deep. Every client project since has used it.
$ bun add @lunarhue/formsWhat you write
Field API
One hook per form. Fields register by name and get typed value, error, and touched state back.
const form = createForm({
initial: { email: "", plan: "team" },
validate: schema,
onSubmit: (values) => api.signup(values),
});
<input {...form.field("email")} />




