Skip to content
العربية
Saudi forms and dates

FileDrop

Drop zone around a real file input. Refuses files that are too large or of the wrong type.

import { FileDrop } from "@percentsa/ui";

Examples

Code
export function FileDropExample() {
  const t = useT();
  return (
    <Field label={t("Attachments", "المرفقات")} className="w-full max-w-md">
      <FileDrop name="files" accept=".pdf,image/*" multiple maxSizeMb={5} />
    </Field>
  );
}