UNPKG

@hhgtech/hhg-components

Version:
23 lines (22 loc) 675 B
import React, { CSSProperties } from 'react'; type Option = { label: string; value: string; type: 'upload' | 'download'; icon?: JSX.Element; url?: string; fileAcceptedType?: string; multiple?: boolean; }; export type Props = { options: Array<Option>; placeholder: string; id: string; placeholderIcon?: JSX.Element; onUploadSelected?: (e: FileList) => void; value?: Option; className?: string; style?: CSSProperties; }; declare const FileDropdown: ({ className, value, options, onUploadSelected, id, placeholderIcon, placeholder, style, }: Props) => React.JSX.Element; export { FileDropdown };