@h
Link
@hero
@p
Zelda
Princess, Hyrule
Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/profile-card
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { ProfileCard, ProfileCardAvatar, ProfileCardBody, ProfileCardDetails, ProfileCardName, ProfileCardVerifiedBadge,} from "@/components/ui/pxl/profile-card"<ProfileCard> <ProfileCardAvatar name="@hero" src="https://raw.githubusercontent.com/pxl-ui/registry/main/app/public/portraits/hero.png" /> <ProfileCardDetails> <ProfileCardName> Link <ProfileCardVerifiedBadge /> </ProfileCardName> <ProfileCardBody>@hero</ProfileCardBody> </ProfileCardDetails></ProfileCard>Composition
Section titled “Composition”Use the following composition to build a ProfileCard
ProfileCard├── ProfileCardAvatar└── ProfileCardDetails ├── ProfileCardName │ └──ProfileCardVerifiedBadge └── ProfileCardBodyAPI reference
Section titled “API reference”ProfileCard
Section titled “ProfileCard”| Prop | Type | Default | Description |
|---|---|---|---|
orientation |
horizontal | vertical |
horizontal |
The orientation of the card |
className |
- | - | Additional styles |
ProfileCardDetails
Section titled “ProfileCardDetails”| Prop | Type | Default | Description |
|---|---|---|---|
className |
- | - | Additional styles |
ProfileCardName
Section titled “ProfileCardName”| Prop | Type | Default | Description |
|---|---|---|---|
className |
- | - | Additional styles |
ProfileCardVerifiedBadge
Section titled “ProfileCardVerifiedBadge”| Prop | Type | Default | Description |
|---|---|---|---|
className |
- | - | Additional styles |
ProfileCardBody
Section titled “ProfileCardBody”| Prop | Type | Default | Description |
|---|---|---|---|
className |
- | - | Additional styles |