X Enterprises
nuxt-x-app-admin

Users Directory

Searchable, filterable, paginated user directory with grid/list view toggle and selection support.

Users Directory

Searchable, filterable, paginated user directory with grid/list view toggle and selection support.

Components

<XAdminUsersDirectory />

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

<XAdminUsersDirectory />

Props

PropTypeDefaultDescription
usersArrayREQUIREDArray of user objects to render.
loadingBooleanfalseExternal loading flag (skeleton state).
searchableBooleantrueShow search input.
searchPlaceholderString'Search users...'Search input placeholder text.
rolesArray[]Available role values for the role filter dropdown.
roleFilterBooleanfalseShow role filter dropdown.
statusFilterBooleanfalseShow status filter dropdown (online / offline / away / busy).
viewString'list'Initial view mode; validated to 'grid' or 'list'.
viewToggleBooleanfalseAllow user to toggle between grid and list.
selectableBooleanfalseRender checkboxes for row selection.
modelValueArray[]v-model array of selected user keys.
userKeyString'id'Property on the user object used as selection key.
emptyTitleString'No users found'Title text for the empty state.
emptyDescriptionString''Description text for the empty state.
emptyIconString'i-lucide-users'Iconify icon name for the empty state.
columnsNumber3Grid columns when in grid view (1-6).
paginatedBooleanfalseEnable client-side pagination.
pageSizeNumber20Items per page when paginated.
totalNumber0Total count for server-side pagination.

Emits

EventPayloadDescription
update:modelValuevariesStandard v-model update for modelValue.
searchvariesSearch query changed (Directory).
filtervariesFilter selection changed (Directory).
user-clickvariesUser row clicked (Directory).
pagevariesPagination page changed (Directory).
update:viewvariesv-model:view update for view-mode toggle (Directory).

AI Context

component: XAdminUsersDirectory
package: "@xenterprises/nuxt-x-app-admin"
category: Users
source: app/components/XAdmin/Users/Directory.vue
use-when: Searchable, filterable, paginated user directory with grid/list view toggle and selection support.
Copyright © 2026