react-hook-form with zod object schema for two Input fields.
npx shadcn@latest add @shadcnblocks/form-form-multi-field-1
Sign in or get a license at Shadcn Blocks to see its source and install it.