@abgov/react-components
Version:
Government of Alberta - UI components for React
25 lines (24 loc) • 910 B
TypeScript
import { GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '@abgov/ui-components-common';
interface WCProps {
ref: React.RefObject<HTMLElement | null>;
variant?: GoabFileUploadInputVariant;
accept?: string;
maxfilesize?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-file-upload-input": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabFileUploadInputProps {
variant?: GoabFileUploadInputVariant;
accept?: string;
maxFileSize?: string;
testId?: string;
onSelectFile: (detail: GoabFileUploadInputOnSelectFileDetail) => void;
}
export declare function GoabFileUploadInput({ variant, accept, maxFileSize, testId, onSelectFile, }: GoabFileUploadInputProps): import("react/jsx-runtime").JSX.Element;
export default GoabFileUploadInput;