Home / Function/ ItemAvatar() — ui Function Reference

ItemAvatar() — ui Function Reference

Architecture documentation for the ItemAvatar() function in item-avatar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3d6c91e7_9f1e_bfbf_add9_5c7a50db2267["ItemAvatar()"]
  6c2bf819_c2dc_035b_1d7e_17f172da058a["item-avatar.tsx"]
  3d6c91e7_9f1e_bfbf_add9_5c7a50db2267 -->|defined in| 6c2bf819_c2dc_035b_1d7e_17f172da058a
  style 3d6c91e7_9f1e_bfbf_add9_5c7a50db2267 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(app)/(root)/components/item-avatar.tsx lines 18–78

export function ItemAvatar() {
  return (
    <div className="flex w-full max-w-lg flex-col gap-6">
      <Item variant="outline" className="hidden">
        <ItemMedia>
          <Avatar className="size-10">
            <AvatarImage src="https://github.com/maxleiter.png" />
            <AvatarFallback>LR</AvatarFallback>
          </Avatar>
        </ItemMedia>
        <ItemContent>
          <ItemTitle>Max Leiter</ItemTitle>
          <ItemDescription>Last seen 5 months ago</ItemDescription>
        </ItemContent>
        <ItemActions>
          <Button
            size="icon-sm"
            variant="outline"
            className="rounded-full"
            aria-label="Invite"
          >
            <Plus />
          </Button>
        </ItemActions>
      </Item>
      <Item variant="outline">
        <ItemMedia>
          <div className="*:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:grayscale">
            <Avatar className="hidden sm:flex">
              <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
              <AvatarFallback>CN</AvatarFallback>
            </Avatar>
            <Avatar className="hidden sm:flex">
              <AvatarImage
                src="https://github.com/maxleiter.png"
                alt="@maxleiter"
              />
              <AvatarFallback>LR</AvatarFallback>
            </Avatar>
            <Avatar>
              <AvatarImage
                src="https://github.com/evilrabbit.png"
                alt="@evilrabbit"
              />
              <AvatarFallback>ER</AvatarFallback>
            </Avatar>
          </div>
        </ItemMedia>
        <ItemContent>
          <ItemTitle>No Team Members</ItemTitle>
          <ItemDescription>Invite your team to collaborate.</ItemDescription>
        </ItemContent>
        <ItemActions>
          <Button size="sm" variant="outline">
            Invite
          </Button>
        </ItemActions>
      </Item>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does ItemAvatar() do?
ItemAvatar() is a function in the ui codebase, defined in apps/v4/app/(app)/(root)/components/item-avatar.tsx.
Where is ItemAvatar() defined?
ItemAvatar() is defined in apps/v4/app/(app)/(root)/components/item-avatar.tsx at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free