@confi/conflux-react-ui-test-package
Version:
Modern and minimalist React UI library.
39 lines (38 loc) • 1.23 kB
TypeScript
import React from 'react';
import { NormalSizes, NormalTypes } from 'components/utils/prop-types';
export interface Props {
value?: string;
initialValue?: string;
placeholder?: string;
size?: NormalSizes;
status?: NormalTypes;
readOnly?: boolean;
disabled?: boolean;
label?: string;
labelRight?: string;
icon?: React.ReactNode;
iconRight?: React.ReactNode;
iconClickable?: boolean;
width?: string;
className?: string;
clearable?: boolean;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
onClearClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
onIconClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
autoComplete: string;
}
export declare const defaultProps: {
disabled: boolean;
readOnly: boolean;
clearable: boolean;
iconClickable: boolean;
width: string;
size: "mini" | "small" | "medium" | "large";
status: "default" | "secondary" | "success" | "warning" | "error";
autoComplete: string;
className: string;
placeholder: string;
initialValue: string;
};