# UserCard

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

- Package: `@nexub/patterns` · Category: People · Status: stable
- Import: `import { UserCard } from '@nexub/patterns';`
- Docs: https://nexub-ds-docs.pages.dev/patterns/user-card

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` (required) | `string` |  | User display name. |
| `email` | `string` |  | User email address. |
| `role` | `string` |  | Job title or role label. |
| `avatarSrc` | `string` |  | URL for avatar image. |
| `actions` | `React.ReactNode` |  | Action buttons or menu. |

## Example: Default

```tsx
import { UserCard } from '@nexub/patterns';

export default function Example() {
  return (
    <div className="w-75">
      <UserCard name="Alex Johnson" email="alex@example.com" role="Admin" avatarFallback="AJ" />
    </div>
  );
}
```
