UNPKG

@react-bunker/input-mask

Version:

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

30 lines (29 loc) 952 B
import { ComponentPropsWithRef } from 'react'; import { Mask } from '../types'; interface Input extends ComponentPropsWithRef<'input'> { mask?: Mask; } declare function InputComponent({ mask: maskProp, ref, ...props }: Input): import("react/jsx-runtime").JSX.Element; export declare const Input: typeof InputComponent & { masks: { currency: (options?: Intl.NumberFormatOptions & { locale?: string; }) => { set(input: string): string; clear: (input: string) => string; }; noSpace: { set: (input: string) => string; clear: (input: string) => string; }; noSpecialCharacter: { set: (input: string) => string; clear: (input: string) => string; }; noSpecialCharacterAndNumbers: { set: (input: string) => string; clear: (input: string) => string; }; }; }; export {};