Avatar
Avatar is a component component that provides avatar functionality.
Active

Examples
size
Different size options for the Avatar component.
sm

md

lg

Installation
npm install @your-design-system/avatarimport { Avatar } from "@/components/ui/avatar"
export function AvatarDemo() {
return (
<Avatar size="md">
{/* Content */}
</Avatar>
)
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | - | The src prop for the component. |
alt | string | - | The alt prop for the component. |
fallback | string | - | The fallback prop for the component. |
Styling
The component uses Tailwind CSS classes for styling. You can customize the appearance by overriding these classes.
Base Classes
relativeflexshrink-0overflow-hiddenrounded-fullsize Variants
sm
h-8w-8md
h-10w-10lg
h-12w-12Design System Compliance
This component is validated against atomic design principles and foundation token usage.
✓ Atomic Design Compliant
This component follows atomic design principles and properly uses foundation tokens.
On This Page