Skip to content

Avatar

Avatar + image + fallback with load-state handling.

Terminal window
npx github:truongnat/rnui#cli add avatar

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/avatar.json # or /uniwind/
<Avatar>
<AvatarImage source={{ uri: 'https://i.pravatar.cc/100' }} />
<AvatarFallback>TQ</AvatarFallback>
</Avatar>
  • components/ui/avatar.tsx

Installs together with: utils, text, theme