mr-component
Version:
A library for Mr components
29 lines (28 loc) • 882 B
TypeScript
import * as React from 'react';
interface VantInputProps {
value?: string;
defaultValue?: string;
placeholder?: string;
type?: 'text' | 'number' | 'password' | 'tel' | 'search' | 'email' | 'url';
size?: 'large' | 'normal';
disabled?: boolean;
readOnly?: boolean;
clearable?: boolean;
maxLength?: number;
showWordLimit?: boolean;
label?: string;
labelWidth?: number | string;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
required?: boolean;
error?: boolean;
errorMessage?: string;
onChange?: (value: string) => void;
onFocus?: () => void;
onBlur?: () => void;
onClear?: () => void;
style?: React.CSSProperties;
className?: string;
}
declare const RefVantInput: React.ForwardRefExoticComponent<VantInputProps & React.RefAttributes<HTMLInputElement>>;
export default RefVantInput;