Superforms × svelte-number-format

sveltekit-superforms with a Zod schema. bind:value goes straight into the form store — Superforms handles the validation and server round-trip.

Try an amount over $1,000,000: the Zod schema rejects it with a validation error.

{
  "amount": 0,
  "phone": ""
}