Item() — ui Function Reference
Architecture documentation for the Item() function in item.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD dee9960f_f12e_165f_702d_a670f8fab758["Item()"] b3d41b4f_f10e_eb25_012d_989fc0566ea3["item.tsx"] dee9960f_f12e_165f_702d_a670f8fab758 -->|defined in| b3d41b4f_f10e_eb25_012d_989fc0566ea3 style dee9960f_f12e_165f_702d_a670f8fab758 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/item.tsx lines 54–72
function Item({
className,
variant = "default",
size = "default",
asChild = false,
...props
}: React.ComponentProps<"div"> &
VariantProps<typeof itemVariants> & { asChild?: boolean }) {
const Comp = asChild ? Slot.Root : "div"
return (
<Comp
data-slot="item"
data-variant={variant}
data-size={size}
className={cn(itemVariants({ variant, size, className }))}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Item() do?
Item() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/item.tsx.
Where is Item() defined?
Item() is defined in apps/v4/registry/new-york-v4/ui/item.tsx at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free