1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. pinfold
  3. File Upload

File Upload

ui

Pick or drop files: a drop zone, a button or a compact row that opens the file dialog from the keyboard too. Rules for type, size and count with every rejected file listed and why; image previews; a list with progress per file when you give it an `upload` function (aborted on remove, retried on error); paste to add; a hidden input with a `name` for native forms. File contents are never read except to show an image preview.

pnpm dlx shadcn@latest add "https://pinfold.indranildev.in/r/fileupload.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
  • @pinfold/react@^1.1.0
  • @pinfold/css@^1.1.0
    components/ui/fileupload.tsx