@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
18 lines (16 loc) • 718 B
TypeScript
import { default as React, InputHTMLAttributes } from 'react';
export type InputTextProps = {
id: string;
isErrored: boolean;
className?: string;
hidePlaceholder?: boolean;
onChange?: React.ChangeEventHandler;
onKeyDown?: React.ChangeEventHandler;
ref?: never;
refId?: string;
required?: boolean;
ariaDescribedBy?: string;
ariaLabel?: string;
type?: "text" | "number" | "date" | "month" | "email" | "password" | "search" | "url" | "tel";
} & InputHTMLAttributes<HTMLInputElement>;
export declare const InputTextComponent: ({ id, isErrored, className, hidePlaceholder, refId, required, type, ariaDescribedBy, ariaLabel, ...props }: InputTextProps) => React.JSX.Element;