UserCard
Displays a user profile with avatar, name, username handle, and optional bio.
Import
import { UserCard } from "@gumtree/ui/forge/UserCard" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
username* | string | - | Username (displayed as @handle) |
fullName | string | - | Display name. Falls back to username. |
avatarUrl | string | - | URL for the user's avatar image |
bio | string | - | Short biography text |
href | string | - | Link URL. Defaults to /{username} |
Examples
With Avatar
A user card with a profile image and bio.
< UserCard
username = "alice"
fullName = "Alice Johnson"
avatarUrl = "https://api.dicebear.com/9.x/thumbs/svg?seed=Alice"
bio = "Full-stack developer and open source enthusiast."
/> Without Avatar
When no avatar URL is provided, a placeholder with initials is shown.
BO
< UserCard
username = "bob"
fullName = "Bob Smith"
bio = "Backend engineer."
/>