Home / File/ item-avatar.tsx — ui Source File

item-avatar.tsx — ui Source File

Architecture documentation for item-avatar.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9bf47c15_50d8_b5b7_1c7c_a6cc306a6004["item-avatar.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  550576ca_32fe_8288_72d6_10281189833b["avatar"]
  9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 --> 550576ca_32fe_8288_72d6_10281189833b
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 --> 57e86e45_ac6e_7278_be08_9092724e8401
  58f4fa76_4350_6209_54e6_f19a58e0eda4["item"]
  9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 --> 58f4fa76_4350_6209_54e6_f19a58e0eda4
  style 9bf47c15_50d8_b5b7_1c7c_a6cc306a6004 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Plus } from "lucide-react"

import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/registry/new-york-v4/ui/avatar"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemMedia,
  ItemTitle,
} from "@/registry/new-york-v4/ui/item"

export default function ItemAvatar() {
  return (
    <div className="flex w-full max-w-lg flex-col gap-6">
      <Item variant="outline">
        <ItemMedia>
          <Avatar className="size-10">
            <AvatarImage src="https://github.com/evilrabbit.png" />
            <AvatarFallback>ER</AvatarFallback>
          </Avatar>
        </ItemMedia>
        <ItemContent>
          <ItemTitle>Evil Rabbit</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 on this project.
          </ItemDescription>
        </ItemContent>
        <ItemActions>
          <Button size="sm" variant="outline">
            Invite
          </Button>
        </ItemActions>
      </Item>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • avatar
  • button
  • item
  • lucide-react

Frequently Asked Questions

What does item-avatar.tsx do?
item-avatar.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in item-avatar.tsx?
item-avatar.tsx defines 1 function(s): ItemAvatar.
What does item-avatar.tsx depend on?
item-avatar.tsx imports 4 module(s): avatar, button, item, lucide-react.
Where is item-avatar.tsx in the architecture?
item-avatar.tsx is located at apps/v4/registry/new-york-v4/examples/item-avatar.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free