Home / Function/ Item() — ui Function Reference

Item() — ui Function Reference

Architecture documentation for the Item() function in item.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b5b24a22_b9ec_991b_6002_30f0c9c3361f["Item()"]
  29a13644_5d85_ffea_e425_32878756a728["item.tsx"]
  b5b24a22_b9ec_991b_6002_30f0c9c3361f -->|defined in| 29a13644_5d85_ffea_e425_32878756a728
  style b5b24a22_b9ec_991b_6002_30f0c9c3361f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/item.tsx lines 57–75

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}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Item() do?
Item() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/item.tsx.
Where is Item() defined?
Item() is defined in apps/v4/examples/radix/ui-rtl/item.tsx at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free