SelectItem() — ui Function Reference
Architecture documentation for the SelectItem() function in select.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 022e032e_adf3_d29d_ccc2_0e123bf58aa2["SelectItem()"] 431bf12d_909c_68a1_6570_791d19dd115a["select.tsx"] 022e032e_adf3_d29d_ccc2_0e123bf58aa2 -->|defined in| 431bf12d_909c_68a1_6570_791d19dd115a style 022e032e_adf3_d29d_ccc2_0e123bf58aa2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/select.tsx lines 110–132
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 not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 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 className="pointer-events-none absolute right-2 flex size-4 items-center justify-center">
<SelectPrimitive.ItemIndicator>
<CheckIcon className="pointer-events-none" />
</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/examples/radix/ui/select.tsx.
Where is SelectItem() defined?
SelectItem() is defined in apps/v4/examples/radix/ui/select.tsx at line 110.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free