Avatar

An image element with a fallback for representing the user.

KDUIRN

Installation

npx ghost-ui-native add avatar

Usage

import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar';
<Avatar>
  <AvatarImage source={{ uri: 'https://github.com/shadcn.png' }} />
  <AvatarFallback>KD</AvatarFallback>
</Avatar>

Notes

  • Always include AvatarFallback for when the image fails to load.