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
  d82acc81_5ec8_356f_904a_01a314c377f7["SelectItem()"]
  cc5a2b93_5022_c511_3ed0_25dd5a152de0["select.tsx"]
  d82acc81_5ec8_356f_904a_01a314c377f7 -->|defined in| cc5a2b93_5022_c511_3ed0_25dd5a152de0
  style d82acc81_5ec8_356f_904a_01a314c377f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/select.tsx lines 118–147

function SelectItem({
  className,
  children,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Item>) {
  return (
    <SelectPrimitive.Item
      data-slot="select-item"
      className={cn(
        "cn-select-item relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
        className
      )}
      {...props}
    >
      <span className="cn-select-item-indicator">
        <SelectPrimitive.ItemIndicator>
          <IconPlaceholder
            lucide="CheckIcon"
            tabler="IconCheck"
            hugeicons="Tick02Icon"
            phosphor="CheckIcon"
            remixicon="RiCheckLine"
            className="cn-select-item-indicator-icon pointer-events-none"
          />
        </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 apps/v4/registry/bases/radix/ui/select.tsx.
Where is SelectItem() defined?
SelectItem() is defined in apps/v4/registry/bases/radix/ui/select.tsx at line 118.

Analyze Your Own Codebase

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

Try Supermodel Free