---
title: Avatar
description: An image element with a fallback for representing the user.
component: true
radix:
link: https://www.radix-ui.com/docs/primitives/components/avatar
api: https://www.radix-ui.com/docs/primitives/components/avatar#api-reference
---
## Installation
```bash
npx shadcn-ui add avatar
```
Manual Installation
1. Install the `@radix-ui/react-avatar` component from radix-ui:
```bash
npm install @radix-ui/react-avatar
```
2. Copy and paste the following code into your project.
This is the `` primitive. You can place it in a file at `components/ui/avatar.tsx`.
## Usage
```tsx
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
```
```tsx
CN
```