ProfileForm
A reusable profile block for editing and saving a user's first and last name while displaying their locked email.
Install
Run the following command to install the profile name form block:
npx acc-nuxt add ProfileFormPreview
Profile data
Without userUuid, the block reads and updates the signed-in user's profile using useProfile()'s current-user behavior. Pass a UUID to target another profile when the signed-in user has permission to access and update it. The email is display-only. A selected profile image is uploaded when the form is submitted, and its private CDN key is sent as avatarKey. Blank name fields are sent as null to clear them.
Props
userUuid:string— optional
UUID of the profile to edit. Defaults to the currently authenticated user.