@abgov/react-components
Version:
Government of Alberta - UI components for React
30 lines (29 loc) • 990 B
TypeScript
import { GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '@abgov/ui-components-common';
interface WCProps {
ref: React.RefObject<HTMLElement | null>;
filename: string;
size: number;
type?: string;
progress?: number;
error?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-file-upload-card": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabFileUploadCardProps {
filename: string;
size: number;
type?: string;
progress?: number;
testId?: string;
error?: string;
onDelete?: (detail: GoabFileUploadOnDeleteDetail) => void;
onCancel?: (detail: GoabFileUploadOnCancelDetail) => void;
}
export declare function GoabFileUploadCard({ filename, size, type, progress, error, testId, onDelete, onCancel, }: GoabFileUploadCardProps): import("react/jsx-runtime").JSX.Element;
export default GoabFileUploadCard;