import * as React from 'react'; import { cn } from '@/lib/utils'; const Input = React.forwardRef>( ({ className, type, inputMode, ...props }, ref) => { // Default `type=number` to a numeric keyboard on mobile when the caller // didn't explicitly override `inputMode`. Without this, iOS shows the // full QWERTY keyboard for prices/dimensions/etc. — common audit gripe. // `decimal` covers both whole numbers and decimals; if the caller wants // strict integer input they pass `inputMode="numeric"` explicitly. const resolvedInputMode = inputMode ?? (type === 'number' ? 'decimal' : undefined); return ( ); }, ); Input.displayName = 'Input'; export { Input };