UNPKG

@ssplib/react-components

Version:
12 lines (11 loc) 429 B
import React from 'react'; import { IMaskInput } from 'react-imask'; export type IMaskConfig = Partial<React.ComponentProps<typeof IMaskInput>>; export default function MaskInput(props: { formConfig: object; defaultValue?: string; disabled?: boolean; watchValue?: string; onMask?: (value: string, setMask: React.Dispatch<React.SetStateAction<string>>) => void; imaskConfig?: IMaskConfig; }): JSX.Element;