Content
ContentMedia
Media library with grid and list views for admin asset management.
ContentMedia
Renders a media library with toggleable grid and list views, drag-and-drop file uploads, folder navigation, search, and delete actions for managing images, documents, and other uploaded assets.
Components
<XAdminContentMedia />
Displays all media assets with upload, search, folder organization, and view toggle (grid/list) controls.
<XAdminContentMedia />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
endpoint | string | '/api/admin/content/media' | API endpoint for media library |
loading | boolean | false | Show loading skeleton |
defaultView | 'grid' | 'list' | 'grid' | Initial view mode |
accept | string | 'image/*' | Accepted MIME types for upload |
maxFileSize | number | 10485760 | Max upload file size in bytes (default 10 MB) |
selectable | boolean | false | Enable selection mode for embedding in editors |
AI Context
component: XAdminContentMedia
package: "@xenterprises/nuxt-x-app-admin"
category: Content
use-when: Browsing, uploading, and managing media assets in an admin CMS media library
