Home / Function/ SelectItem() — ui Function Reference

SelectItem() — ui Function Reference

Architecture documentation for the SelectItem() function in select.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  bae2c530_dcef_f150_8ec1_24f0936c9332["SelectItem()"]
  1d7cc6d2_901a_09b3_af7d_2edd7f293757["select.tsx"]
  bae2c530_dcef_f150_8ec1_24f0936c9332 -->|defined in| 1d7cc6d2_901a_09b3_af7d_2edd7f293757
  style bae2c530_dcef_f150_8ec1_24f0936c9332 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/select.tsx lines 117–134

>(({ className, children, ...props }, ref) => (
  <SelectPrimitive.Item
    ref={ref}
    className={cn(
      "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      className
    )}
    {...props}
  >
    <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
      <SelectPrimitive.ItemIndicator>
        <Check className="h-4 w-4" />
      </SelectPrimitive.ItemIndicator>
    </span>

    <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
  </SelectPrimitive.Item>
))

Subdomains

Frequently Asked Questions

What does SelectItem() do?
SelectItem() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/select.tsx.
Where is SelectItem() defined?
SelectItem() is defined in deprecated/www/registry/default/ui/select.tsx at line 117.

Analyze Your Own Codebase

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

Try Supermodel Free