Drop, paste or choose files and follow each upload, including failures and retries.
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.
FileDropzonedata-slot="file-dropzone"
The zone.
FileDropzoneListdata-slot="file-dropzone-list"
The rows.
FileDropzoneItemdata-slot="file-dropzone-item"
One file.
components/ui/notchset/file-dropzone.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/file-dropzone.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/file-dropzone.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release