@hhgtech/hhg-components
Version:
Hello Health Group common components
29 lines (28 loc) • 1.38 kB
TypeScript
import React, { HTMLAttributes } from 'react';
import { GATrackingCode } from "../../../care/components/organisms/bookingSearchBar/types";
export type Props = {
value: string;
name: string;
size: 'lg' | 'md' | 'sm';
readOnly?: boolean;
isNumerousKeyboard?: boolean;
autoComplete?: 'on' | 'off';
errorMessage?: string;
showErrorMessage?: boolean;
actionIcon?: JSX.Element;
onActionClick?: () => void;
displayIcon?: JSX.Element;
label?: string | JSX.Element;
onChange?: (v: string) => void;
isDisabled?: boolean;
CustomInput?: JSX.Element;
type?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | 'number';
inputClassName?: string;
trackingAttributes?: GATrackingCode;
enterKeyHint?: React.InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
} & Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'name' | 'value'>;
/**
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
*/
declare const Input: ({ name, value, errorMessage, isNumerousKeyboard, showErrorMessage, actionIcon: ActionIcon, displayIcon: DisplayIcon, onActionClick, label, className, onChange, isDisabled, CustomInput, size, style, autoComplete, type, inputClassName, trackingAttributes, enterKeyHint, ...rest }: Props) => React.JSX.Element;
export { Input };