import { FC, ReactElement, InputHTMLAttributes, ChangeEvent } from "react"; import { IconProp } from "@fortawesome/fontawesome-svg-core"; declare type InputSize = "lg" | "sm"; export interface InputProps extends Omit, "size"> { /**是否禁用 Input*/ disabled?: boolean; /**设置 input 大小,支持lg 或者是sm*/ size?: InputSize; /**添加图标,在右侧悬浮添加一个图标,用于提示*/ icon?: IconProp; prepend?: string | ReactElement; append?: string | ReactElement; onChange?: (e: ChangeEvent) => void; } /** * Input 输入框,通过鼠标或键盘输入内容,是最基础的表单域的包装 * ~~~js * //这样引用 * import { Input } from 'vikingship' * ~~~ * 支持HTMLInput 的所有基本属性 */ export declare const Input: FC; export default Input;