primitives/@mihcm/ui·v0.21.0·stable
Dropzone
File drop and browse area powered by react-dropzone. Exposes accepted and rejected files without reading file contents.
Live preview
Adjust the controls on the right; the preview and code update in real time.
Upload evidence
Configured with react-dropzone accept, size, count, disabled, and validator passthroughs.
Browse files
example.tsxtsx
import { Dropzone } from '@mihcm/ui/Dropzone';
export function Example() {
return (
<Dropzone
multiple
maxFiles="3"
accept="pdf"
></Dropzone>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add DropzoneCopies the source into
components/ds/Dropzone.tsx. You own the file. Use --out to override the directory or --force to overwrite.