SelectItem() — ui Function Reference
Architecture documentation for the SelectItem() function in select.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 84a65b1c_c9be_4ad9_30f3_2e6d9ec702fb["SelectItem()"] fe39748a_c966_fa92_b3e1_40ee6a9da692["select.tsx"] 84a65b1c_c9be_4ad9_30f3_2e6d9ec702fb -->|defined in| fe39748a_c966_fa92_b3e1_40ee6a9da692 style 84a65b1c_c9be_4ad9_30f3_2e6d9ec702fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/select.tsx lines 113–139
function SelectItem({
className,
children,
...props
}: SelectPrimitive.Item.Props) {
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}
>
<SelectPrimitive.ItemText className="flex flex-1 shrink-0 gap-2 whitespace-nowrap">
{children}
</SelectPrimitive.ItemText>
<SelectPrimitive.ItemIndicator
render={
<span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />
}
>
<CheckIcon className="pointer-events-none" />
</SelectPrimitive.ItemIndicator>
</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/base/ui/select.tsx.
Where is SelectItem() defined?
SelectItem() is defined in apps/v4/examples/base/ui/select.tsx at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free