UNPKG

react-ui89

Version:

A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.

29 lines (28 loc) 1.01 kB
import React from "react"; import "./Ui89InputFileUpload.css"; import "../style/typo.css"; import "../style/text.css"; export interface Ui89InputFileUploadProps { /** * The file that is currently selected. */ value?: any; /** * Called when a new file is selected or when the currently selected file * is deselected. */ onChange?: (value: File | null) => void; /** * The `accept` attribute specifies the types of files that can be selected, using a * comma-separated list of file type specifiers. Valid values include: * * - File extensions (case-insensitive), beginning with a dot (e.g., `.jpg`, `.pdf`, `.doc`) * - MIME types (e.g., `application/pdf`, `image/png`) * - Wildcard types: * - `audio/*` for any audio files * - `video/*` for any video files * - `image/*` for any image files */ accept?: string; } export declare function Ui89InputFileUpload(props: Ui89InputFileUploadProps): React.JSX.Element;