BETTER-AUTH. UI
Components

<UserAvatar />

Renders the current user's avatar using session data. Shows a skeleton while loading and falls back to initials when no image is available.

Usage

import { UserAvatar } from "@/components/auth/user/user-avatar"

export function UserAvatarDemo() {
  return <UserAvatar />
}

Installation

npx shadcn@latest add https://better-auth-ui.com/r/user-avatar.json

Props

Prop

Type

Last updated on

On this page