MiHCM
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.

Policy document upload

Use accept, size, and count limits so the UI explains what the backend will accept.

<Dropzone accept={{ 'application/pdf': ['.pdf'] }} maxFiles={3} maxSize={5_000_000} />

Custom state renderer

Use the render function when accepted and rejected files need a product-specific review panel.

<Dropzone>{({ acceptedFiles, fileRejections }) => <CustomUploadReview />}</Dropzone>