Skip to content

MediaCollectionListView

MediaCollectionListView(props): Element

Defined in: packages/react/src/components/views/MediaCollectionListView.tsx:62

Media collection list view.

The media counterpart to CollectionListView. Renders the same data-table UI (live-fetched via find + Convex subscription, server initialData for an instant first paint) with two media-specific differences:

  1. A leading preview column shows a thumbnail of each media file (from the src field), falling back to a placeholder when no URL is present.
  2. The create flow opens the media upload modal (an upload dropzone) instead of a field form, and the header action reads “Upload” rather than “New”.

Renders the content area only — wrap it in AdminLayout.

MediaCollectionListViewProps

View props

Element

The media data table, or an empty state when no media exists yet.

<MediaCollectionListView collection={imagesCollection} initialData={serverDocs} />