--- title: Avatar description: An image element with a fallback for representing the user. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/avatar api: https://www.radix-ui.com/docs/primitives/components/avatar#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add avatar ``` Install the following dependencies: ```bash npm install @radix-ui/react-avatar ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" ``` ```tsx showLineNumbers CN ```