UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

12 lines (11 loc) 355 B
export declare function useInputMask(mask: string, options?: { placeholderChar?: string; autofix?: boolean; }): { maskedValue: string; rawValue: string; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; onBlur: () => void; setValue: (value: string) => void; inputRef: React.RefObject<HTMLInputElement | null>; };