UNPKG

@geist-ui/react

Version:

Modern and minimalist React UI library.

38 lines (37 loc) 1.18 kB
import React from 'react'; import { NormalTypes } from "../utils/prop-types"; export declare type InputTypes = NormalTypes; export interface Props { value?: string; initialValue?: string; placeholder?: string; type?: InputTypes; htmlType?: string; readOnly?: boolean; disabled?: boolean; label?: string; labelRight?: string; icon?: React.ReactNode; iconRight?: React.ReactNode; iconClickable?: boolean; 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; type: "secondary" | "success" | "error" | "warning" | "default"; htmlType: string; autoComplete: string; className: string; placeholder: string; initialValue: string; };