A dropzone with crop-mark corners that pull in while a file is over it, paper sheets that lift and fan, drop, paste or choose, and upload rows that open in: uploading, indexing, ready, failed with resume, too large.
pnpm dlx shadcn@latest add @beautiful-ui-pro/file-dropzoneNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { FileDropzone, FileDropzoneItem, FileDropzoneList } from "@/components/ui/notchset/file-dropzone";
type Upload = { id: string; name: string; size: number; status: "uploading" | "ready" };
export function DocsUpload() {
const [files, setFiles] = React.useState<Upload[]>([]);
return (
<div className="grid gap-3">
<FileDropzone
title="DROP DOCS"
onFiles={(list) => setFiles((f) => [...f, ...list.map((file) => ({ id: crypto.randomUUID(), name: file.name, size: file.size, status: "uploading" as const }))])}
/>
<FileDropzoneList>
{files.map((f) => (
<FileDropzoneItem key={f.id} name={f.name} size={f.size} status={f.status} onRemove={() => setFiles((all) => all.filter((x) => x.id !== f.id))} />
))}
</FileDropzoneList>
</div>
);
}FileDropzone onFiles–
(files: File[]) => voidDropped, pasted or chosen files.
accept / multiple / disabled–
string / booleanPassed to the file input.
title / overTitle / description / hint–
ReactNodeThe zone's copy.
FileDropzoneItem name / size / status–
string / bytes / FileStatusuploading, indexing, ready, failed, too-large.
progress / chunks / error–
number / number / stringThe status line's values.
onRetry / onRemove–
() => voidRESUME on failure; × folds the row away, then calls this.
components/ui/notchset/file-dropzone.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.