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 DocumentationAtlas Changelog 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  fa775f73_2e55_e34b_3b0b_f72061dd395b["item-avatar.tsx"]
  ec3aa9ae_e596_5628_1560_c37c71899cb4["avatar"]
  fa775f73_2e55_e34b_3b0b_f72061dd395b --> ec3aa9ae_e596_5628_1560_c37c71899cb4
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  fa775f73_2e55_e34b_3b0b_f72061dd395b --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  c68c8707_2b57_a84c_88d0_54d7bfae76d0["item"]
  fa775f73_2e55_e34b_3b0b_f72061dd395b --> c68c8707_2b57_a84c_88d0_54d7bfae76d0
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  fa775f73_2e55_e34b_3b0b_f72061dd395b --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style fa775f73_2e55_e34b_3b0b_f72061dd395b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Avatar, AvatarFallback, AvatarImage } from "@/examples/radix/ui/avatar"
import { Button } from "@/examples/radix/ui/button"
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemMedia,
  ItemTitle,
} from "@/examples/radix/ui/item"
import { Plus } from "lucide-react"

export 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 DocumentationAtlas domain, Changelog 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/examples/radix/item-avatar.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free