X Enterprises
nuxt-x-app-admin

Content Media

Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.

Content Media

Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.

Components

<XAdminContentMedia />

Props, events, and behaviour reflect the actual <script setup> of XAdmin/Content/Media/index.vue in @xenterprises/nuxt-x-app-admin.

<XAdminContentMedia />

Props

PropTypeDefaultDescription
endpointString'admin/content/media'API endpoint for the media list.
searchableBooleantrueShow search input.
paginatedBooleantrueEnable client-side pagination.
pageSizeNumber24Items per page (4/6 grid friendly).
selectableBooleanfalseRender selection checkboxes; emits update:modelValue with array.
modelValueArray[]v-model array of selected media items.

Emits

EventPayloadDescription
uploadvariesFired when a media file is uploaded.
viewvariesFired on 'View' action.
deletevariesFired after a delete succeeds.
update:modelValuevariesStandard v-model update for modelValue.

AI Context

component: XAdminContentMedia
package: "@xenterprises/nuxt-x-app-admin"
category: Content
source: app/components/XAdmin/Content/Media/index.vue
use-when: Media library with grid / list views, type filter, upload, copy-URL, view, and delete actions.
Copyright © 2026