@navinc/base-react-components
Version:
Nav's Pattern Library
13 lines (12 loc) • 553 B
TypeScript
import { FocusEventHandler, ChangeEventHandler } from 'react';
import Input from '../input.js';
import { InferComponentProps } from '../types.js';
declare type UsdInputProps = InferComponentProps<typeof Input> & {
name: string;
onBlur?: FocusEventHandler<HTMLInputElement>;
onChange?: ChangeEventHandler<HTMLInputElement>;
invalidOnTouched?: boolean;
allowNegatives?: boolean;
};
declare const UsdInput: ({ name, onBlur, onChange, invalidOnTouched, allowNegatives, ...props }: UsdInputProps) => JSX.Element;
export default UsdInput;