Avatar

A player head in a slot, with a fallback.

Pushpak

Install and use

The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.

"use client"

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"

const person = {
  name: "Pushpak",
  src: "https://github.com/pushpak1300.png",
}

export function Example() {
  return (
    <div data-slot="row">
      <Avatar>
        <AvatarImage src={person.src} alt={person.name} />
        <AvatarFallback>
          <span aria-hidden="true">PK</span>
          <span data-slot="visually-hidden">Pushpak</span>
        </AvatarFallback>
      </Avatar>
    </div>
  )
}