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
titlestring❌Card header title. Defaults to 'Profile'.
cardLayoutboolean❌Whether to render inside a Card wrapper. Defaults to true.
cardVariant'elevated' | 'outlined' | 'flat'❌Shadow/border style of the card wrapper. Defaults to 'elevated'.
compactboolean❌Tighter spacing, useful inside modals or dropdowns. Defaults to false.
editableboolean❌Whether fields can be edited inline. Defaults to true.
showAvatarboolean❌Whether to render the avatar hero section. Defaults to true.
avatarSize'sm' | 'md' | 'lg'❌Avatar circle size. Defaults to 'lg'.
showFieldsstring[]❌Fields to show. Empty means show all.
hideFieldsstring[]❌Fields to hide by name
classNamestring❌Extra CSS class added to the root element

Explore with AI

ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.