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.

Overview

File drop and browse area powered by react-dropzone. Exposes accepted and rejected files without reading file contents.

Use Dropzone from @mihcm/ui with MiHCM semantic tokens and Tailwind utility classes. Keep layout, spacing, color, and state styling token-based so the component remains responsive and dark-mode compatible.

Install and import

npx @mihcm/cli add Dropzone
import { Dropzone } from '@mihcm/ui/Dropzone';

Usage rules

  • Prefer the component API first, then extend with tokenized className overrides.
  • Do not use raw hex colors, inline styles, or local primitive forks.
  • Test mobile width, keyboard access, focus states, disabled states, and empty data.
  • Keep labels and descriptions visible or available through accessible names.