beta-parity-react
Version:
Beta Parity React Components
34 lines • 866 B
TypeScript
import React from 'react';
import './index.css';
import { InputProps } from '../BaseInput';
/**
* Props for the FileInput component.
*
*/
export interface FileInputProps extends InputProps {
/**
* Array of supported file formats.
*
* Example: `['image/png', 'image/jpeg']`
*
* If left empty, all file formats are accepted.
*
* @default []
* @memberof FileInputProps
*/
supportedFormats?: string[];
/**
* Label text for the file input.
*
* @default "Choose file"
* @memberof FileInputProps
*/
label?: string;
}
/**
* **File Input**.
*
* @see {@link https://beta-parity-react.vercel.app/file-input Parity FileInput}
*/
export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=index.d.ts.map