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:
- A leading preview column shows a thumbnail of each media file (from the
srcfield), falling back to a placeholder when no URL is present. - 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.
Parameters
Section titled “Parameters”MediaCollectionListViewProps
View props
Returns
Section titled “Returns”Element
The media data table, or an empty state when no media exists yet.
Example
Section titled “Example”<MediaCollectionListView collection={imagesCollection} initialData={serverDocs} />