User

Data Display

A component combining avatar with user name and description. Use the User component to display user profiles in lists, cards, or inline contexts.

Import

import { User, UserCard, UserListItem } from "@/components/ui/user";

Usage

Basic User

Simple user display with name and description

J
John DoeProduct Manager

Sizes

User component in different sizes

J
John DoeSmall
J
John DoeMedium (default)
J
John DoeLarge

User Card

User displayed in a card with actions

J
John Doejohn@sonance.com

User List

Users displayed in a selectable list

J
John DoeProduct Manager
J
Jane SmithDesigner
M
Mike JohnsonDeveloper

API Reference

PropTypeDefaultDescription
name*stringUser's display name
descriptionstringSecondary text (role, email, etc.)
avatarSrcstringURL for the avatar image
avatarFallbackstringFallback initials for avatar
size"sm" | "md" | "lg""md"Size of the component

Related Components