@starter-ui/core
Version:
This is a UI Components built with the utility classes from Tailwind CSS.
34 lines (33 loc) • 1.02 kB
TypeScript
import { default as React, ChangeEventHandler, HTMLInputTypeAttribute, ReactNode } from 'react';
export interface Props {
id?: string;
type?: HTMLInputTypeAttribute;
label?: string;
value?: string | number | undefined;
isLoading?: boolean;
size?: string;
radius?: string;
color?: string;
required?: boolean;
disabled?: boolean;
placeholder?: string;
autoComplete?: string;
autoFocus?: boolean;
isReadOnly?: boolean;
isError?: boolean;
helperText?: string;
labelClassName?: string;
inputClassName?: string;
prefixClassName?: string;
suffixClassName?: string;
className?: string;
prefix?: ReactNode;
suffix?: ReactNode;
onChange?: ChangeEventHandler<HTMLInputElement>;
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>, value: string, handleBlurInput?: () => void) => void;
onBlur?: () => void;
onFocus?: () => void;
suffixOnClick?: () => void;
}
declare const Input: React.FC<Props>;
export default Input;