React media and upload components
Free React media components: file dropzone, image upload, galleries, lightbox, carousel, avatars, audio player and video player chrome.
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 need | Use | Why |
|---|---|---|
| Drag and drop several files | File Dropzone | Accept and reject drag states |
| One cover or logo image | Image Upload | Turns into a preview |
| Crop before upload | Image Cropper | Pan, zoom, aspect, rotate |
| A grid of photos | Image Gallery | Two, then three columns |
| Open an image full size | Image Lightbox | Focus returns to the thumbnail |
| Slides that do not fit in a row | Carousel | Native swipe, WAI-ARIA carousel |
| A list of attachments | File List | Optional download action |
| A round user photo | Avatar | Initials fallback |
| Play audio | Audio Player | You own playback |
| Record a voice note | Audio Recorder | MediaRecorder, no dependencies |
| Video controls | Video Player Chrome | Wire it to your video element |
| A QR code | Qr Code | Encoder in the file |
| Compare before and after | Before After Wipe | Keyboard-operable divider |
| Product UI in a phone or browser frame | Device Frame | Live 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-recorderComponents 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-playerAvatar
uiShadcn 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/avatarCarousel
uiScroll 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/carouselA 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-listFile Row
uiA 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-rowA 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-galleryA 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-lightboxA 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-previewVideo 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-chromeReact 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-cropperQr Code
uiReact 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-codeReact 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
Device Frame
blockWraps 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-frameMedia Library
blockA 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
Before After Wipe
motionA 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-wipeFilmstrip Scrub
motionA 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.
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.