DocsComponentsUser Profile

User Profile

The User Profile component displays a comprehensive Ethereum Profile with ENS and EFP details like:

  • Avatar and Header Image
  • Name and Status
  • Role (if provided)
  • Description (Bio)
  • Follower State (follows you, blocks you, mutes you)
  • Profile Statistics (Followers, Following)
  • Common Followers
  • Social Media Links
  • POAP Badges

Add to your project

import { UserProfile } from 'ethereum-identity-kit'
 
export default function Home() {
  return <UserProfile addressOrName="cottons.eth" />
}
Try it out! - https://playground.ethidentitykit.com/?path=/docs/organisms-user-profile--component-docs

Parameters

ParameterDescriptionRequiredDefault Value
addressOrNameEthereum Address or ENS name to fetch profile data for.Yes-
listSearch profile data by list number; overrides addressOrName if provided.No-
connectedAddressAddress of the user connected to the app.No-
darkModeEnables dark mode styling for the profile.Nofalse
roleAdditional information to display on the profile (used for roles on ethid.org).No-
showFollowerStateShows follower state tag (follows you, blocks you, mutes you).Nofalse
onStatClickAction to perform when a stat is clicked; defaults to navigating to EFP profile with selected stat.No-
selectedListList number selected in your application for the connected user.No-
onProfileClickAction to perform when the profile is clicked.No-
showPoapsShows EFP related POAPs on the profile.Notrue
alignProfileContentAligns the profile content when max-width is surpassed (center, start, end).No’center’
optionsAdditional options for profile data and functionality. See ProfileCardOption type for details:No-
- followButton: React node for a follow button.
- nameMenu: React node for a name menu.
- profileData: Prefetched profile data.
- prefetchedProfileLoading: Loading state for prefetched profile data.
- refetchProfileData: Function to refetch profile data.
- statsData: Prefetched stats data.
- openListSettings: Function to open list settings modal.
classNameAdditional CSS class names to apply to the component.No-
styleInline CSS styles to apply to the component.No-

Styling

The component uses predefined styles and can be customized using the className and style props. The appearance can be manually toggled between light and dark modes using the darkMode prop. The component also supports responsive design with different layouts for desktop and mobile views.