Skip to content
nexubDesign System
v12.7.0

Patterns · People

UserCard

Since v0.0.1

User profile card displaying avatar, name, role, and optional actions.

import { UserCard } from '@nexub/patterns';
View as Markdown

Examples

Default

Alex JohnsonAdminalex@example.com

Props

Props
PropTypeDefaultDescription
namerequiredstring—User display name.
emailstring—User email address.
rolestring—Job title or role label.
avatarSrcstring—URL for avatar image.
actionsReact.ReactNode—Action buttons or menu.
avatarFallbackstring—
loadingbooleanfalse10.5: skeletons in place of the avatar and text; the card keeps its size.
size'sm' | 'md' | 'lg''md'