Home / Function/ NativeSelect() — ui Function Reference

NativeSelect() — ui Function Reference

Architecture documentation for the NativeSelect() function in native-select.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c795de26_8a8e_5fe6_c625_51464eabd66e["NativeSelect()"]
  c8e37a28_0a4b_7270_30b2_898c0257b270["native-select.tsx"]
  c795de26_8a8e_5fe6_c625_51464eabd66e -->|defined in| c8e37a28_0a4b_7270_30b2_898c0257b270
  style c795de26_8a8e_5fe6_c625_51464eabd66e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/native-select.tsx lines 10–42

function NativeSelect({
  className,
  size = "default",
  ...props
}: NativeSelectProps) {
  return (
    <div
      className={cn(
        "cn-native-select-wrapper group/native-select relative w-fit has-[select:disabled]:opacity-50",
        className
      )}
      data-slot="native-select-wrapper"
      data-size={size}
    >
      <select
        data-slot="native-select"
        data-size={size}
        className="cn-native-select outline-none disabled:pointer-events-none disabled:cursor-not-allowed"
        {...props}
      />
      <IconPlaceholder
        lucide="ChevronDownIcon"
        tabler="IconSelector"
        hugeicons="UnfoldMoreIcon"
        phosphor="CaretDownIcon"
        remixicon="RiArrowDownSLine"
        className="cn-native-select-icon pointer-events-none absolute select-none"
        aria-hidden="true"
        data-slot="native-select-icon"
      />
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does NativeSelect() do?
NativeSelect() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/native-select.tsx.
Where is NativeSelect() defined?
NativeSelect() is defined in apps/v4/registry/bases/radix/ui/native-select.tsx at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free