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

item-group.tsx — ui Source File

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

File tsx DocumentationAtlas Changelog 5 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

import * as React from "react"
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/radix/ui/avatar"
import { Button } from "@/examples/radix/ui/button"
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemMedia,
  ItemSeparator,
  ItemTitle,
} from "@/examples/radix/ui/item"
import { PlusIcon } from "lucide-react"

const people = [
  {
    username: "shadcn",
    avatar: "https://github.com/shadcn.png",
    email: "shadcn@vercel.com",
  },
  {
    username: "maxleiter",
    avatar: "https://github.com/maxleiter.png",
    email: "maxleiter@vercel.com",
  },
  {
    username: "evilrabbit",
    avatar: "https://github.com/evilrabbit.png",
    email: "evilrabbit@vercel.com",
  },
]

export function ItemGroupExample() {
  return (
    <ItemGroup className="max-w-sm">
      {people.map((person, index) => (
        <Item key={person.username} variant="outline">
          <ItemMedia>
            <Avatar>
              <AvatarImage src={person.avatar} className="grayscale" />
              <AvatarFallback>{person.username.charAt(0)}</AvatarFallback>
            </Avatar>
          </ItemMedia>
          <ItemContent className="gap-1">
            <ItemTitle>{person.username}</ItemTitle>
            <ItemDescription>{person.email}</ItemDescription>
          </ItemContent>
          <ItemActions>
            <Button variant="ghost" size="icon" className="rounded-full">
              <PlusIcon />
            </Button>
          </ItemActions>
        </Item>
      ))}
    </ItemGroup>
  )
}

Subdomains

Functions

Dependencies

  • avatar
  • button
  • item
  • lucide-react
  • react

Frequently Asked Questions

What does item-group.tsx do?
item-group.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-group.tsx?
item-group.tsx defines 1 function(s): ItemGroupExample.
What does item-group.tsx depend on?
item-group.tsx imports 5 module(s): avatar, button, item, lucide-react, react.
Where is item-group.tsx in the architecture?
item-group.tsx is located at apps/v4/examples/radix/item-group.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