Changelog

Release history.

GitHub

1.1.0

  • Published under the reactformswitch package name.
  • Added an MIT LICENSE.

No API changes from 1.0.0.

1.0.0

Initial stable release.

  • Schema-driven forms — render a validated, themed form from a schema on top of React Hook Form (state) and Zod (validation).
  • Single-page and multi-stepfields for one page, steps for a wizard where each step validates before advancing.
  • Ten built-in field typestext, email, password, number, date, textarea, select, checkbox, radio, and a drag-and-drop / paste image upload with per-file constraints and thumbnail previews.
  • Two validation paths — a Zod validation per field, or pure-JSON rules with a custom message.
  • JSON-authored look & behavior (ui) — size, max width, label & button position, error mode (inline / toast / popup), toast position + TTL, and a full theme, all from plain values — no raw CSS.
  • Serializationjson, formdata, and xml payloads (images serialized correctly per payload), plus registerSerializer for custom formats.
  • Theminglight / dark presets, defineTheme token merging, or raw --fs-* CSS variables.
  • Responsivecol spans on a 12-column grid driven by container queries, no JS media queries.
  • Loaders — five CSS-only submit-button loaders (spinner, ring, pulse, dots, bars) plus registerLoader and a standalone <Loader>.
  • Three extension registriesregisterField, registerSerializer, registerLoader — plain functions, no plugin framework.
  • Visual builder — configure a form in a UI and copy out the schema JSON.

On this page