DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Attachment
  3. Attachment File Picker
MarkdownShare

Shadcn Attachment File Picker

File picker that fills an attachment tray. Built by composing Attachment, Use File Upload. A free, open source shadcn attachment example you can install with npx shadcn@latest add @reui/c-attachment-6 and edit as your own code.

File picker that fills an attachment tray

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: A dashed idle card that opens the system dialog, then lists picks as sm rows with image previews, sizes and limit errors

When to use

  • Files carried by a chat turn, as chips in a composer tray or cards in an assistant reply
  • Upload queues and pickers where each file reads as idle, uploading, processing, failed or done
  • Rows of image thumbnails or file chips that scroll sideways on one line instead of wrapping

When not to use

  • Picking by dragging files from the desktop onto a drop zone: use the File Upload component
  • Files already uploading or failed that need a retry and cancel: use the Attachment Upload Queue example
  • A colored format badge that labels a document by its extension, such as PDF: use the File Type component
  • An upload list where each row needs a bar filling toward 100 percent: use the Progress component

Agent notes

  • Nothing sends the picked files; hand them to your upload code and move each row off state idle as it goes
  • The limits are the maxFiles, maxSize and accept options of useFileUpload; the AttachmentDescription text repeats size and type, so edit both
  • Attachment uploads nothing and only styles the state you pass, so set state from your own transfer code
  • The radix Button behind AttachmentAction sets no type, so pass type button inside a form or it submits
Markdownhttps://web.dev.reui.io/components/attachment/c-attachment-6.md
MCPget_example("c-attachment-6")
Installnpx shadcn@latest add @reui/c-attachment-6
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Attachment File Picker

  • Attachment

About Shadcn Attachment File Picker

File picker that fills an attachment tray. Built by composing Attachment, Use File Upload. A free, open source shadcn attachment example you can install with npx shadcn@latest add @reui/c-attachment-6 and edit as your own code.

What You Can Build With Shadcn Attachment File Picker

  • Composes Attachment, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-attachment-6
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Attachment Examples

  • Assistant Reply Single file attachment in an assistant reply
  • Composer Tray Composer tray with removable attachments
  • Image Strip Image thumbnails in a snapping strip
  • Three Sizes Three sizes carrying three levels of an answer
  • Upload Queue Upload queue across all five states

Related Shadcn Component Categories

  • Autocomplete

    Open-source shadcn autocomplete components for smart search, typeahead inputs, and suggestion lists.

  • Avatar

    Open-source shadcn avatar components for user profiles, team directories, and comment threads.

  • Badge

    Open-source shadcn badge components for status labels, feature tags, and count indicators.

  • Breadcrumb

    Open-source shadcn breadcrumb components for navigation trails, docs hierarchy, and app wayfinding.

  • Bubble

    Open-source shadcn bubble components for chat threads, assistant replies, and message reactions.

  • Button

    Open-source shadcn button components for primary actions, form submissions, and toolbar controls.

Frequently Asked Questions

When should I use Shadcn Attachment File Picker?

Use it for a dashed idle card that opens the system dialog, then lists picks as sm rows with image previews, sizes and limit errors.

Shadcn Attachment as a whole fits:

  • Files carried by a chat turn, as chips in a composer tray or cards in an assistant reply
  • Upload queues and pickers where each file reads as idle, uploading, processing, failed or done
  • Rows of image thumbnails or file chips that scroll sideways on one line instead of wrapping

For picking by dragging files from the desktop onto a drop zone, use the File Upload component. For files already uploading or failed that need a retry and cancel, use the Attachment Upload Queue example. For a colored format badge that labels a document by its extension, such as PDF, use the File Type component. For an upload list where each row needs a bar filling toward 100 percent, use the Progress component.

How do I install Shadcn Attachment File Picker?

Run npx shadcn@latest add @reui/c-attachment-6. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Attachment File Picker free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Attachment File Picker use?

It composes Attachment. The shadcn CLI installs those alongside the example.
PreviousUpload Queue

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K