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 7720bb90_1599_930e_6142_48caf367776e["item.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 7720bb90_1599_930e_6142_48caf367776e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 45bdba50_501d_4bbb_e6ef_5f033d29cffe["react-slot"] 7720bb90_1599_930e_6142_48caf367776e --> 45bdba50_501d_4bbb_e6ef_5f033d29cffe 25383e8d_ca91_a50e_c3a8_5f228d02e1df["class-variance-authority"] 7720bb90_1599_930e_6142_48caf367776e --> 25383e8d_ca91_a50e_c3a8_5f228d02e1df 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 7720bb90_1599_930e_6142_48caf367776e --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 0ef877d6_b768_4222_bd20_50d875ac5e58["separator"] 7720bb90_1599_930e_6142_48caf367776e --> 0ef877d6_b768_4222_bd20_50d875ac5e58 style 7720bb90_1599_930e_6142_48caf367776e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { Separator } from "@/registry/new-york/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 [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
{
variants: {
variant: {
default: "bg-transparent",
outline: "border-border",
muted: "bg-muted/50",
},
size: {
default: "gap-4 p-4 ",
sm: "gap-2.5 px-4 py-3",
},
},
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
- react
- react-slot
- 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, react, react-slot, separator, utils.
Where is item.tsx in the architecture?
item.tsx is located at deprecated/www/registry/new-york/ui/item.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free