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 "@better-auth-ui/heroui"

function RouteComponent() {
  return (
    <div className="flex flex-col p-4 md:p-6 my-auto items-center">
      <UserAvatar />
    </div>
  )
}

Props

Prop

Type

Last updated on

On this page