Overview
What it is
Making a reusable input component enforce numeric and pattern restrictions consistently.
Problem and context
Generic form inputs can accidentally accept invalid wheel, paste or change behavior when validation logic is scattered.
Approach
Centralize input restrictions while preserving React Hook Form controlled value semantics and existing component behavior.