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

item-image.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5e979478_c0af_a192_3b8d_dec03eb499f6["item-image.tsx"]
  3eb36dd7_f51a_1431_02e2_7abafe315718["image"]
  5e979478_c0af_a192_3b8d_dec03eb499f6 --> 3eb36dd7_f51a_1431_02e2_7abafe315718
  6dd5189d_43e3_a38a_acbe_4ea1ae186ae2["item"]
  5e979478_c0af_a192_3b8d_dec03eb499f6 --> 6dd5189d_43e3_a38a_acbe_4ea1ae186ae2
  style 5e979478_c0af_a192_3b8d_dec03eb499f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Image from "next/image"
import {
  Item,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemMedia,
  ItemTitle,
} from "@/examples/base/ui/item"

const music = [
  {
    title: "Midnight City Lights",
    artist: "Neon Dreams",
    album: "Electric Nights",
    duration: "3:45",
  },
  {
    title: "Coffee Shop Conversations",
    artist: "The Morning Brew",
    album: "Urban Stories",
    duration: "4:05",
  },
  {
    title: "Digital Rain",
    artist: "Cyber Symphony",
    album: "Binary Beats",
    duration: "3:30",
  },
]

export function ItemImage() {
  return (
    <div className="flex w-full max-w-md flex-col gap-6">
      <ItemGroup className="gap-4">
        {music.map((song) => (
          <Item
            key={song.title}
            variant="outline"
            render={<a href="#" />}
            role="listitem"
          >
            <ItemMedia variant="image">
              <Image
                src={`https://avatar.vercel.sh/${song.title}`}
                alt={song.title}
                width={32}
                height={32}
                className="object-cover grayscale"
              />
            </ItemMedia>
            <ItemContent>
              <ItemTitle className="line-clamp-1">
                {song.title} -{" "}
                <span className="text-muted-foreground">{song.album}</span>
              </ItemTitle>
              <ItemDescription>{song.artist}</ItemDescription>
            </ItemContent>
            <ItemContent className="flex-none text-center">
              <ItemDescription>{song.duration}</ItemDescription>
            </ItemContent>
          </Item>
        ))}
      </ItemGroup>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • image
  • item

Frequently Asked Questions

What does item-image.tsx do?
item-image.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-image.tsx?
item-image.tsx defines 1 function(s): ItemImage.
What does item-image.tsx depend on?
item-image.tsx imports 2 module(s): image, item.
Where is item-image.tsx in the architecture?
item-image.tsx is located at apps/v4/examples/base/item-image.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free