File Upload
Drag-and-drop file uploader with preview, progress, and validation hooks.
Preview
example.tsxtsx
Drag & drop a file here, or
Supported formats: PNG, JPG, WEBPMax size: 10.0 MB
Installation
Install the individual package:
snippet.bashbash
pnpm add @sisyphos-ui/file-upload @sisyphos-ui/coreOr use the umbrella package that bundles everything:
snippet.bashbash
pnpm add @sisyphos-ui/uiUsage
Import the component styles and the component itself:
snippet.tsxtsx
import "@sisyphos-ui/file-upload/styles.css";
import { FileUpload } from "@sisyphos-ui/file-upload";API
Props table is being written. See the package README for the complete API surface.
The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README.