Home / File/ select.tsx — ui Source File

select.tsx — ui Source File

Architecture documentation for select.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 4 imports 9 functions

Entity Profile

Dependency Diagram

graph LR
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29["select.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  5abd70b1_e9d3_bc78_98a8_cfcc77f9a572["select"]
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29 --> 5abd70b1_e9d3_bc78_98a8_cfcc77f9a572
  8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"]
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29 --> 8ad666ec_1b20_adda_0392_87a60bdb3a68
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 8ec2ba55_c5b8_dd05_8c62_e29326f13c29 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Select as SelectPrimitive } from "@base-ui/react/select"

import { cn } from "@/registry/bases/base/lib/utils"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

const Select = SelectPrimitive.Root

function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props) {
  return (
    <SelectPrimitive.Group
      data-slot="select-group"
      className={cn("cn-select-group", className)}
      {...props}
    />
  )
}

function SelectValue({ className, ...props }: SelectPrimitive.Value.Props) {
  return (
    <SelectPrimitive.Value
      data-slot="select-value"
      className={cn("cn-select-value", className)}
      {...props}
    />
  )
}

function SelectTrigger({
  className,
  size = "default",
  children,
  ...props
}: SelectPrimitive.Trigger.Props & {
  size?: "sm" | "default"
}) {
  return (
    <SelectPrimitive.Trigger
      data-slot="select-trigger"
      data-size={size}
      className={cn(
        "cn-select-trigger flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
        className
      )}
      {...props}
    >
      {children}
      <SelectPrimitive.Icon
        render={
          <IconPlaceholder
            lucide="ChevronDownIcon"
            tabler="IconSelector"
            hugeicons="UnfoldMoreIcon"
            phosphor="CaretDownIcon"
            remixicon="RiArrowDownSLine"
            className="cn-select-trigger-icon pointer-events-none"
          />
        }
// ... (161 more lines)

Subdomains

Dependencies

  • icon-placeholder
  • react
  • select
  • utils

Frequently Asked Questions

What does select.tsx do?
select.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in select.tsx?
select.tsx defines 9 function(s): SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue.
What does select.tsx depend on?
select.tsx imports 4 module(s): icon-placeholder, react, select, utils.
Where is select.tsx in the architecture?
select.tsx is located at apps/v4/registry/bases/base/ui/select.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).

Analyze Your Own Codebase

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

Try Supermodel Free