react-hook-form-zod
✓使用 React Hook Form 和 Zod 模式驗證在 React 中構建類型安全的驗證表單。單一模式適用於客戶端和服務器,通過 z.infer 進行完整的 TypeScript 類型推斷,進行 DRY 驗證。 使用場合:構建帶有驗證的表單、集成 shadcn/ui 表單組件、實現多步驟嚮導、使用 useFieldArray 處理動態字段數組,或修復不受控制的受控警告、解析器錯誤、異步驗證問題。
SKILL.md
Status: Production Ready ✅ Last Updated: 2025-11-20 Dependencies: None (standalone) Latest Versions: react-hook-form@7.66.1, zod@4.1.12, @hookform/resolvers@5.2.2
| resolver | Validation resolver (e.g., zodResolver) | undefined | | mode | When to validate ('onSubmit', 'onChange', 'onBlur', 'all') | 'onSubmit' | | reValidateMode | When to re-validate after error | 'onChange' | | defaultValues | Initial form values | {} | | shouldUnregister | Unregister inputs when unmounted | false |
| criteriaMode | Return all errors or first error only | 'firstError' |
使用 React Hook Form 和 Zod 模式驗證在 React 中構建類型安全的驗證表單。單一模式適用於客戶端和服務器,通過 z.infer 進行完整的 TypeScript 類型推斷,進行 DRY 驗證。 使用場合:構建帶有驗證的表單、集成 shadcn/ui 表單組件、實現多步驟嚮導、使用 useFieldArray 處理動態字段數組,或修復不受控制的受控警告、解析器錯誤、異步驗證問題。 來源:ovachiever/droid-tings。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/ovachiever/droid-tings --skill react-hook-form-zod- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 react-hook-form-zod?
使用 React Hook Form 和 Zod 模式驗證在 React 中構建類型安全的驗證表單。單一模式適用於客戶端和服務器,通過 z.infer 進行完整的 TypeScript 類型推斷,進行 DRY 驗證。 使用場合:構建帶有驗證的表單、集成 shadcn/ui 表單組件、實現多步驟嚮導、使用 useFieldArray 處理動態字段數組,或修復不受控制的受控警告、解析器錯誤、異步驗證問題。 來源:ovachiever/droid-tings。
如何安裝 react-hook-form-zod?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ovachiever/droid-tings --skill react-hook-form-zod 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/ovachiever/droid-tings
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01