File Drop Uploader

A calm dropzone that lifts and tints on drag-over, then gives each file its own row with a spring progress hairline, a tick that pops on completion, and errors that say what went wrong with one-tap retry.

Try it: Drop files or click to browse; remove a row with ×.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/file-drop-uploader.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/file-drop-uploader. You can also copy the source into components/ui/file-drop-uploader.tsx (view on GitHub).

Usage

import { FileDropUploader } from '@/components/ui/file-drop-uploader'

Props

Component props
PropTypeDefaultNotes
maxSize / acceptnumber / string25 MBPer-file limit and accepted types.
upload(file, onProgress) => Promise<void>simulationReal uploader; reject to mark a failure.
defaultItems / onItemsChangeUploadItem[]SAMPLE_UPLOADSSeed rows and change callback.
disabledbooleanfalseDisables the dropzone.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • Glass Segmented Control

    An iOS-style segmented control whose selected thumb is a lifted glass pill that springs between segments with a press squish — native radio semantics, arrow keys and an opaque reduced-transparency…

  • Rolling Number Stepper

    A quantity field whose changed digits roll in the direction of travel, accelerates on press-and-hold like a hardware stepper, and nudges sideways with a reason at its bounds. A real spinbutton you…

  • Dynamic Status Island

    A black capsule that morphs its silhouette between live activities — recording with a level meter, a focus timer with pause, an upload with a progress hairline, a success tick — size and radius on…

  • Inset Settings List

    An iOS-style grouped inset list with tinted icon tiles, hairlines inset to the label edge, switches whose knob stretches on press, and choice rows that push a detail page with a parallax slide and…

  • Detent Sheet

    An Apple-style bottom sheet resting at peek, half and full detents — velocity-aware drag with rubber-banding, the background recedes and dims as it rises, and a grabber that also works with tap and…

  • Keyboard Shortcut Hint

    A cheat sheet of tactile keycaps that knows your platform (⌘ ⌥ ⇧ vs Ctrl Alt Shift); hold real keys and matching caps sink and light up, complete a combo and its row confirms. Exports Kbd for inline…

See all 14 Product UI components