Skip to content
SevenUI
Sign inGet Pro

Attachment components

15 free, copy-and-go React Attachment examples built on the SevenUI Attachment primitive. Install any of them with the shadcn CLI.

On this page

Size Scale

The same file shown at the default, small, and extra-small attachment sizes with guidance on where each fits.

… add @sevenui/component/attachment-01… add @sevenui/ui-sdk/component/attachment-01
  • DefaultComposers, detail views
    q3-revenue-forecast.xlsx418 KB · Spreadsheet
  • SmallMessage threads, lists
    q3-revenue-forecast.xlsx418 KB · Spreadsheet
  • Extra smallTable cells, dense feeds
    q3-revenue-forecast.xlsx418 KB · Spreadsheet

Surface Styles

Outline, subtle, elevated, and ghost attachment surfaces side by side, each with a download action.

… add @sevenui/component/attachment-02… add @sevenui/ui-sdk/component/attachment-02
master-services-agreement.pdf2.4 MB · PDF
Outline
series-a-pitch.key18 MB · Keynote
Subtle
onboarding-walkthrough.mp464 MB · Video
Elevated
brand-kit-2026.zip112 MB · Archive
Ghost

Upload States

Every attachment state from queued to verified, including a failed upload with a working retry.

… add @sevenui/component/attachment-03… add @sevenui/ui-sdk/component/attachment-03
  • tax-return-2025.pdfQueued · starts after 2 files
  • w2-acme-corp.pdfUploading · 1.1 of 1.8 MB
  • 1099-int-statement.pdfExtracting totals…
  • receipt-scan.heicUpload failed · connection lost
  • mortgage-interest-1098.pdf640 KB · Verified

Removable Thumbnails

Vertical image attachments in a grid with overlay remove buttons and an undo for the last removal.

… add @sevenui/component/attachment-04… add @sevenui/ui-sdk/component/attachment-04

Listing photos

4 of 8
  • Linen sofa, front view
    sofa-front.jpg2.1 MB
  • Linen sofa, side profile
    sofa-side.jpg1.8 MB
  • Close-up of the linen weave
    fabric-detail.jpg940 KB
  • Sofa styled in a living room
    living-room.jpg3.4 MB

Preview Dialog

A clickable attachment that opens a dialog preview with file details while keeping its download action separate.

… add @sevenui/component/attachment-05… add @sevenui/ui-sdk/component/attachment-05
floor-plan-unit-4b.pdf3.2 MB · 6 pages

Selectable Files

Attachments as toggleable selections with a custom check indicator and a single or multiple selection mode.

… add @sevenui/component/attachment-06… add @sevenui/ui-sdk/component/attachment-06
Add context to your prompt
  • checkout-redesign-spec.md24 KB · Markdown
  • conversion-funnel.csv1.3 MB · CSV
  • payment-step.png860 KB · Image
  • orders-schema.ts6 KB · TypeScript
2 files selected

File Picker

A drag-and-drop zone backed by a real file input that lists picked files with type icons, sizes, a per-file size limit, and remove actions.

… add @sevenui/component/attachment-07… add @sevenui/ui-sdk/component/attachment-07
Drop files or click to browseUp to 5 files, 25.0 MB each

Nothing selected yet. Files stay on your device.

Overflow Summary

Compact extra-small chips with a +N more popover that lists every read-only attachment for download.

… add @sevenui/component/attachment-08… add @sevenui/ui-sdk/component/attachment-08
6 attachments
invoice-inv-2048.pdf
timesheet-august.xlsx

Support Reply Composer

A ticket reply form with removable log and screenshot attachments above the send action.

… add @sevenui/component/attachment-09… add @sevenui/ui-sdk/component/attachment-09
Priority support
crash-log-0921.txt18 KB · Text
checkout-error.png412 KB · PNG
network-trace.har2.4 MB · HAR

Billing Invoices

A billing card listing monthly invoice PDFs with paid or due status and download actions.

… add @sevenui/component/attachment-10… add @sevenui/ui-sdk/component/attachment-10
Invoices
Team plan · billed monthly to Visa 4242
  • invoice-2026-09.pdfSep 1 – Sep 30 · $240.00 · Due Oct 1
    Due Oct 1
  • invoice-2026-08.pdfAug 1 – Aug 31 · $240.00 · Paid
    Paid
  • invoice-2026-07.pdfJul 1 – Jul 31 · $192.00 · Paid
    Paid

Identity Verification Step

An onboarding step with front and back ID slots that turn from empty upload targets into removable previews before Continue unlocks.

… add @sevenui/component/attachment-11… add @sevenui/ui-sdk/component/attachment-11

Verify your identity

Step 2 of 3

Add a photo of both sides of a driver’s license or national ID card. We only use it to confirm payouts go to you.

Front of ID preview
license-front.jpgFront of ID added
Back of IDBarcode must be readable

Encrypted, deleted after 30 days

Return Request With Photos

An order return form that asks for damage photos, with a capped photo strip and an add slot.

… add @sevenui/component/attachment-12… add @sevenui/ui-sdk/component/attachment-12

Stoneware Pour-Over Set

Order #SV-20931 · Delivered Sep 22

$68.00
Why are you returning it?

Photos

Required · 2/3
outer-box.jpg1.8 MB
cracked-lid.jpg2.1 MB
Add photoJPG or PNG

Meeting Event Files

A calendar event card with guests, pre-read documents that open on click, and an RSVP footer.

… add @sevenui/component/attachment-13… add @sevenui/ui-sdk/component/attachment-13
Oct14

Q4 planning review

Tue, 10:00 – 11:30 AM

MRJTAK
+4
7 guests

Read before the meeting

  • q4-planning-agenda.docxEdited by Maya · 2h ago
  • roadmap-review.key24 slides · 8.1 MB
  • headcount-model.xlsxView only · 312 KB
Going?

Shared Folder Selection

A file manager grid of checkbox-selectable tiles with a bulk download and delete bar and a restorable empty state.

… add @sevenui/component/attachment-14… add @sevenui/ui-sdk/component/attachment-14

1 selected

  • logo-primary.svg24 KB
  • moodboard-v3.png3.2 MB
  • brand-guidelines.pdf11 MB
  • hero-shoot-04.jpg5.6 MB
  • tagline-options.md6 KB
  • palette-export.png180 KB

Job Application Uploads

A job application form with a simulated résumé upload, virus scan, and portfolio file errors.

… add @sevenui/component/attachment-15… add @sevenui/ui-sdk/component/attachment-15

Senior Product Designer

Payments team · Remote, EU time zones

Résumé

Required · PDF, max 10 MB
Upload your résuméWe parse it to prefill your work history

Portfolio

Optional · up to 3 files
  • fintech-onboarding-case-study.pdf6.4 MB · Ready
  • motion-reel-2026.movOver the 100 MB limit — share a link instead

Add your résumé to continue.

Components are the parts. Blocks are the page.

Pro blocks are whole sections and pages — heroes, pricing, dashboards, auth — composed from the same primitives and themed by the same tokens you already use. Install one and it is yours.

One purchase, yours forever. $99 at launch instead of $249.