Media Library

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.

src/registry/blocks/media-library.tsx/r/media-library.json

Installation#

bash
npx shadcn@latest add @minidev/media-library

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/media-library.json

Usage#

tsx
import { MediaLibrary } from "@/components/ui/media-library"

export function Example() {
  return <MediaLibrary />
}

API reference#

MediaLibrary takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

React only

Built from

All media and upload components