dimah-s3v1.4.0
Components

Upload Dropzone

Drag-and-drop surface for single- or multi-file uploads with file queue list.

UploadDropzone provides an accessible drag-and-drop file target bound to useUpload.

Preview

Install

Complete UI setup first — stylesheet and toaster. Then add this component:

import { UploadDropzone } from "@dimah-s3/ui";

Usage

"use client";

import { useUpload } from "@dimah-s3/react";
import { UploadDropzone } from "@dimah-s3/ui";

export function AvatarDropzone() {
  const upload = useUpload({
    route: "avatar",
  });

  return <UploadDropzone upload={upload} />;
}

Props

import type { UploadDropzoneProps } from "@dimah-s3/ui";

Prop

Type

Frequently asked questions

On this page