item.tsx — ui Source File
Architecture documentation for item.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b3d41b4f_f10e_eb25_012d_989fc0566ea3["item.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] b3d41b4f_f10e_eb25_012d_989fc0566ea3 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 25383e8d_ca91_a50e_c3a8_5f228d02e1df["class-variance-authority"] b3d41b4f_f10e_eb25_012d_989fc0566ea3 --> 25383e8d_ca91_a50e_c3a8_5f228d02e1df 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] b3d41b4f_f10e_eb25_012d_989fc0566ea3 --> 9c463da6_747b_38dc_586b_cbb4873070b1 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] b3d41b4f_f10e_eb25_012d_989fc0566ea3 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"] b3d41b4f_f10e_eb25_012d_989fc0566ea3 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f style b3d41b4f_f10e_eb25_012d_989fc0566ea3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"
import { cn } from "@/lib/utils"
import { Separator } from "@/registry/new-york-v4/ui/separator"
function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
role="list"
data-slot="item-group"
className={cn("group/item-group flex flex-col", className)}
{...props}
/>
)
}
function ItemSeparator({
className,
...props
}: React.ComponentProps<typeof Separator>) {
return (
<Separator
data-slot="item-separator"
orientation="horizontal"
className={cn("my-0", className)}
{...props}
/>
)
}
const itemVariants = cva(
"group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
{
variants: {
variant: {
default: "bg-transparent",
outline: "border-border",
muted: "bg-muted/50",
},
size: {
default: "p-4 gap-4 ",
sm: "py-3 px-4 gap-2.5",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)
function Item({
className,
variant = "default",
size = "default",
asChild = false,
...props
}: React.ComponentProps<"div"> &
// ... (134 more lines)
Domain
Subdomains
Functions
Dependencies
- class-variance-authority
- radix-ui
- react
- separator
- utils
Source
Frequently Asked Questions
What does item.tsx do?
item.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.tsx?
item.tsx defines 10 function(s): Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle.
What does item.tsx depend on?
item.tsx imports 5 module(s): class-variance-authority, radix-ui, react, separator, utils.
Where is item.tsx in the architecture?
item.tsx is located at apps/v4/registry/new-york-v4/ui/item.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free