Validate on Blur, then on Change
- from @tealmac
The "reward early, punish late" strategy: a field stays quiet while typing, validates when you leave it, and once it has shown an error it re-validates on every keystroke so the message clears the moment it is fixed. Use this when live validation feels nagging but a stale error feels broken.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @tealmac/validate-on-blur-then-changeRegistry dependencies3
- field
- input
- @tealmac/form-store
Packages0
No npm packages are installed with it.
