SelectItem() — ui Function Reference
Architecture documentation for the SelectItem() function in select.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 42f0dff6_3a45_c37e_7468_1d4f7432ded8["SelectItem()"] f0dc3d5c_0244_187c_ec5b_95566c892317["select.tsx"] 42f0dff6_3a45_c37e_7468_1d4f7432ded8 -->|defined in| f0dc3d5c_0244_187c_ec5b_95566c892317 style 42f0dff6_3a45_c37e_7468_1d4f7432ded8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/select.tsx lines 103–128
function SelectItem({
className,
children,
...props
}: React.ComponentProps<typeof SelectPrimitive.Item>) {
return (
<SelectPrimitive.Item
data-slot="select-item"
className={cn(
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
className
)}
{...props}
>
<span
data-slot="select-item-indicator"
className="absolute right-2 flex size-3.5 items-center justify-center"
>
<SelectPrimitive.ItemIndicator>
<CheckIcon className="size-4" />
</SelectPrimitive.ItemIndicator>
</span>
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
</SelectPrimitive.Item>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SelectItem() do?
SelectItem() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/select.tsx.
Where is SelectItem() defined?
SelectItem() is defined in apps/v4/registry/new-york-v4/ui/select.tsx at line 103.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free