@grafana/ui
Version:
Grafana Components Library
17 lines (16 loc) • 665 B
TypeScript
import { FormEvent } from 'react';
import * as React from 'react';
import { ComponentSize } from '../../types/size';
export interface Props {
/** Callback function to handle uploaded file */
onFileUpload: (event: FormEvent<HTMLInputElement>) => void;
/** Accepted file extensions */
accept?: string;
/** Overwrite or add to style */
className?: string;
/** Button size */
size?: ComponentSize;
/** Show the file name */
showFileName?: boolean;
}
export declare const FileUpload: ({ onFileUpload, className, children, accept, size, showFileName, }: React.PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;