contact-input-component
Version:

18 lines (17 loc) • 563 B
TypeScript
import React from 'react';
export interface InputProps {
id: string;
name: string;
description?: string;
image?: string;
}
export interface contactInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
label?: string;
contacts?: InputProps[];
selectedContacts?: InputProps[];
onChange?: (contacts: InputProps[]) => void;
onInputChange?: (value: string) => void;
allowNewContacts?: boolean;
}
declare const contactInput: React.FC<contactInputProps>;
export default contactInput;