Command Palette

Search for a command to run...

Docs
Profile Avatar Button

Profile Avatar Button

A profile element which contains profile avatar, profile name and profile DID.

fallback
CoffeeLover
0x8a0...098b95

Installation

pnpm dlx shadcn@latest add "https://akasha-ui.pages.dev/r/styles/default/profile-avatar-button.json"

Usage

import {
  ProfileAvatarButton,
  ProfileAvatarButtonAvatar,
  ProfileAvatarButtonAvatarFallback,
  ProfileAvatarButtonAvatarImage,
  ProfileDidField,
  ProfileName,
} from "<path-to-ui-components>/profile-avatar-button";
<ProfileAvatarButton profileDID="did:pkh:eip155:11155111:0x8a022905463998860516390fb27548479a098b95">
  <ProfileAvatarButtonAvatar>
    <ProfileAvatarButtonAvatarImage
      src="https://github.com/akashaorg.png"
      alt="@akashaorg"
    />
    <ProfileAvatarButtonAvatarFallback />
  </ProfileAvatarButtonAvatar>
  <ProfileName>coffeelover</ProfileName>
  <ProfileDidField />
</ProfileAvatarButton>

Props

NameTypeDescription
profileDIDstringDID of a profile.
sizesm, md, or lgComponent sizes.
nsfwbooleanNot safe for work.
nsfwLabelstringNot safe for work label.
verticalbooleanPositions the profile avatar above other components, applicable only when the size is large.
metadataReactNodeMetadata element.

Examples

Large vertical

fallback
CoffeeLover
0x8a0...098b95

Large horizontal

fallback
CoffeeLover
0x8a0...098b95

Medium

fallback
CoffeeLover
0x8a0...098b95

Small

fallback
CoffeeLover
0x8a0...098b95

Metadata

fallback
CoffeeLover· 5 mins ago
0x8a0...098b95

Not safe for work(NSFW)

CoffeeLoverNSFW
0x8a0...098b95