Skip to content

React media and upload components

Free React media components: file dropzone, image upload, galleries, lightbox, carousel, avatars, audio player and video player chrome.

16 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

Media components handle files and pictures: FileDropzone and ImageUpload for picking files, ImageCropper for framing a photo before upload, ImageGallery, ImageLightbox and Carousel for showing them, and AudioPlayer, AudioRecorder and VideoPlayerChrome for sound and video. QrCode carries its own QR encoder, with no library.

They are UI only. FileDropzone validates type and size and gives each file progress, retry and remove, but the upload is yours: pass an upload function and it reports progress per file, so S3, UploadThing, Cloudinary or your own endpoint all work.

Which one should I use?

You needUseWhy
Drag and drop several filesFile DropzoneAccept and reject drag states
One cover or logo imageImage UploadTurns into a preview
Crop before uploadImage CropperPan, zoom, aspect, rotate
A grid of photosImage GalleryTwo, then three columns
Open an image full sizeImage LightboxFocus returns to the thumbnail
Slides that do not fit in a rowCarouselNative swipe, WAI-ARIA carousel
A list of attachmentsFile ListOptional download action
A round user photoAvatarInitials fallback
Play audioAudio PlayerYou own playback
Record a voice noteAudio RecorderMediaRecorder, no dependencies
Video controlsVideo Player ChromeWire it to your video element
A QR codeQr CodeEncoder in the file
Compare before and afterBefore After WipeKeyboard-operable divider
Product UI in a phone or browser frameDevice FrameLive UI, not a screenshot

16 items

npx shadcn@latest add @minidev/audio-player @minidev/avatar @minidev/carousel @minidev/file-list @minidev/file-row @minidev/image-gallery @minidev/image-lightbox @minidev/link-preview @minidev/video-player-chrome @minidev/device-frame @minidev/media-library @minidev/before-after-wipe @minidev/filmstrip-scrub @minidev/image-cropper @minidev/qr-code @minidev/audio-recorder

Components 12

  • Minimal React audio player row with a play and pause toggle, title, subtitle and an accessible progress bar. Controlled, so it works with any audio source.

    npx shadcn@latest add @minidev/audio-player
  • Shadcn compatible avatar on Base UI with image and initials fallback, three sizes, a status badge and an overlapping avatar group with a plus count.

    npx shadcn@latest add @minidev/avatar
  • Scroll snap React carousel with previous and next buttons, arrow key support and a labelled region. Shows one, two or three slides by breakpoint, no library.

    npx shadcn@latest add @minidev/carousel
  • A stacked list of file rows showing each name and metadata such as size or date, with an optional download button per item. Good for React attachment lists.

    npx shadcn@latest add @minidev/file-list
  • A single file row with an icon, a truncated name, an optional meta line and a ghost download button with an accessible label. Styled with Tailwind.

    npx shadcn@latest add @minidev/file-row
  • A responsive photo grid of square tiles, two columns on mobile and three on larger screens, each image cropped to fill. Built with React and Tailwind.

    npx shadcn@latest add @minidev/image-gallery
  • A clickable image thumbnail that opens a full screen modal of the picture with a dimmed backdrop and a close button. Handy for screenshots and product shots.

    npx shadcn@latest add @minidev/image-lightbox
  • A rich link card with an optional 2:1 cover image, title, two line description and the URL, opening in a new tab. Good for chat messages, posts and bookmarks.

    npx shadcn@latest add @minidev/link-preview
  • Video player chrome with a 16:9 stage, a centered play and pause button, a volume icon, a playback progress bar and a title. Bring your own video in React.

    npx shadcn@latest add @minidev/video-player-chrome
  • React image cropper: drag to pan, wheel and pinch zoom, aspect presets, a round avatar mask and 90 degree rotation, returning the crop in source pixels.

    npx shadcn@latest add @minidev/image-cropper
  • React QR code component with its own encoder: versions 1 to 40, four error correction levels, crisp SVG in currentColor, a logo well and an SVG download.

    npx shadcn@latest add @minidev/qr-code
  • React audio recorder on MediaRecorder with start, pause and stop, an elapsed timer, live waveform bars, playback with a scrubber, download and a max length.

    npx shadcn@latest add @minidev/audio-recorder

Blocks and full pages 2

  • Wraps any React UI in a phone with notch, status bar and side buttons, or a browser window with a URL bar. Built from theme tokens for light and dark.

    npx shadcn@latest add @minidev/device-frame
  • A Tailwind media library panel with an upload action and a two column grid of assets showing file name, size and a type badge for image, video, vector or doc.

    npx shadcn@latest add @minidev/media-library

Motion 2

  • A before and after comparison slider in React: drag the handle or use the labelled range input to wipe between two layouts across the full width.

    npx shadcn@latest add @minidev/before-after-wipe
  • A filmstrip scrubber with a preview area, a row of selectable frame buttons using aria-pressed, and a range slider to scrub through frames quickly.

    npx shadcn@latest add @minidev/filmstrip-scrub

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Does the dropzone support multiple files?

Yes. FileDropzone accepts several files, validates type and size, and shows accept and reject states while dragging. Each file gets progress, retry and remove. Click, Enter or Space opens the file picker.

Where do the files get uploaded?

Wherever you choose. The components call your upload handler and render the progress you report back.

How do I generate a QR code in React without a library?

QrCode has the encoder in the file: byte mode, versions 1 to 40 and all four error correction levels. It draws one SVG path in currentColor, can hold a logo at level H, and downloads as SVG.

How do I crop an image before upload?

ImageCropper lets people pan, zoom, pick an aspect, mask to a circle and rotate. onCrop reports the crop in source pixels, and getCroppedBlob(src, rect, opts) renders it to a Blob you can upload.