A record's files, each honest about where it is.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add @notchset-pro/attachment-listpnpm dlx shadcn@latest add @notchset-pro/attachment-listNeeds your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
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 { type Attachment, AttachmentList } from "@/components/ui/notchset/blocks/attachment-list";
export default function AttachmentListDemo() {
const [files, setFiles] = React.useState<Attachment[]>([
{ id: "f1", name: "overrun-trace-40-stops.csv", size: 48200, state: "stored", note: "Added by Hana" },
{ id: "f2", name: "late-text-copy.png", size: 182400, state: "uploading", progress: 64 },
{ id: "f3", name: "route-export.json", size: 9100, state: "failed" },
]);
return (
<div className="w-full max-w-[560px]">
<AttachmentList
files={files}
localNote="this demo has no file storage"
onAdd={(fs) => setFiles((x) => [...x, ...fs.map((f, i) => ({ id: `n${x.length + i}`, name: f.name, size: f.size, state: "local" as const }))])}
onRemove={(id) => setFiles((x) => x.filter((f) => f.id !== id))}
/>
</div>
);
}components/ui/notchset/blocks/attachment-list.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
files–
Attachment[]Required.
onAdd–
(files: File[]) => voidRequired.
onRemove–
(id: string) => voidRequired.
localNote"nothing was uploaded"
stringwhat "Kept in this browser" adds about why ("the demo has no file storage")
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
New: a record's files, as a grid or a list.
v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Pro is in early access.