X Enterprises
nuxt-x-app-admin

Users Profile

User profile card with editable fields, optional avatar upload, and field visibility configuration.

Users Profile

User profile card with editable fields, optional avatar upload, and field visibility configuration.

Components

<XAdminUsersProfile />

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

<XAdminUsersProfile />

Props

PropTypeDefaultDescription
userObjectREQUIREDUser object to display / edit.
editableBooleanfalseAllow editing the profile inline.
editingBooleanfalseControlled editing state (use v-model:editing for two-way).
avatarUploadableBooleanfalseShow avatar upload control.
avatarEndpointString''POST endpoint to upload avatar. Empty disables upload.
loadingBooleanfalseExternal loading flag.
fieldsArray'name','email','role','department'Fields to show from the user object.
headerBooleantrueRender the card header.
showDetailsBooleantrueRender the details grid.

Emits

EventPayloadDescription
update:editingvariesv-model:editing update for edit-mode toggle (Profile).
savevariesFired after a successful save.
cancelvariesFired when a subscription is cancelled.
avatar-changevariesFired when the avatar is replaced (Profile).

AI Context

component: XAdminUsersProfile
package: "@xenterprises/nuxt-x-app-admin"
category: Users
source: app/components/XAdmin/Users/Profile.vue
use-when: User profile card with editable fields, optional avatar upload, and field visibility configuration.
Copyright © 2026