@ssplib/react-components
Version:
SSP React Components
23 lines (22 loc) • 853 B
TypeScript
import React from 'react';
import { IMaskConfig } from './MaskInput';
export declare function Input({ type, numberMask, xs, sm, inputMinLength, inputMaxLength, defaultValue, md, disabled, watchValue, ...props }: {
type: 'cnpj' | 'cpf' | 'input' | 'email' | 'cpf_cnpj' | 'phone' | 'input' | 'number' | 'rg' | 'password' | 'cep' | 'sei';
name: string;
watchValue?: string;
title?: string;
required?: boolean;
numberMask?: string;
customPlaceholder?: string;
defaultValue?: string;
inputMinLength?: number;
inputMaxLength?: number;
xs?: number;
sm?: number;
md?: number;
disabled?: boolean;
imaskConfig?: IMaskConfig;
customValidate?: (value: string, form: any) => string | undefined;
}): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof Input>;
export default _default;