Check the code in onValueCommit, keep it readOnly while you do, and show a wrong code as the field’s error.
pnpm dlx shadcn@latest add "https://kinoui.com/r/otp-input-2.json"