Skip to main content

<UserProfile />

The UserProfile component renders a complete user profile management interface where users can view and edit their personal information.

Usage

Basic Usage

src/ProfilePage.vue
<script setup>
import { UserProfile } from '@thunderid/vue'
</script>

<template>
<div>
<h1>My Profile</h1>
<UserProfile />
</div>
</template>

Compact Variant Without Card

Render the profile inline (no card wrapper) with tighter spacing — useful when embedding in a modal or dropdown:

src/ProfilePage.vue
<script setup>
import { UserProfile } from '@thunderid/vue'
</script>

<template>
<UserProfile
:card-layout="false"
compact
title="Account Details"
/>
</template>

Hide or Show Specific Fields

Limit which fields are displayed:

src/ProfilePage.vue
<script setup>
import { UserProfile } from '@thunderid/vue'
</script>

<template>
<UserProfile :hide-fields="['phoneNumbers']" />
</template>

Props

PropTypeRequiredDescription
titlestringCard header title. Defaults to 'Profile'.
cardLayoutbooleanWhether to render inside a Card wrapper. Defaults to true.
cardVariant'elevated' | 'outlined' | 'flat'Shadow/border style of the card wrapper. Defaults to 'elevated'.
compactbooleanTighter spacing — useful inside modals or dropdowns. Defaults to false.
editablebooleanWhether fields can be edited inline. Defaults to true.
showAvatarbooleanWhether to render the avatar hero section. Defaults to true.
avatarSize'sm' | 'md' | 'lg'Avatar circle size. Defaults to 'lg'.
showFieldsstring[]Fields to show exclusively. Empty means show all.
hideFieldsstring[]Fields to hide by name
classNamestringExtra CSS class added to the root element
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.