stream-chat-react
Version:
React components to create chat conversations or livestream style chat
18 lines (17 loc) • 894 B
TypeScript
import type { ComponentProps } from 'react';
import React from 'react';
import type { PartialSelected } from '../../types/types';
/**
* @deprecated Use FileInputProps instead.
*/
export type UploadButtonProps = {
onFileChange: (files: Array<File>) => void;
resetOnChange?: boolean;
} & Omit<ComponentProps<'input'>, 'type' | 'onChange'>;
/**
* @deprecated Use FileInput instead
*/
export declare const UploadButton: React.ForwardRefExoticComponent<Omit<UploadButtonProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
export type FileInputProps = UploadButtonProps;
export declare const FileInput: React.ForwardRefExoticComponent<Omit<UploadButtonProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
export declare const UploadFileInput: React.ForwardRefExoticComponent<Omit<PartialSelected<UploadButtonProps, "onFileChange">, "ref"> & React.RefAttributes<HTMLInputElement>>;