select.tsx — ui Source File
Architecture documentation for select.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cc5a2b93_5022_c511_3ed0_25dd5a152de0["select.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] cc5a2b93_5022_c511_3ed0_25dd5a152de0 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] cc5a2b93_5022_c511_3ed0_25dd5a152de0 --> 9c463da6_747b_38dc_586b_cbb4873070b1 ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] cc5a2b93_5022_c511_3ed0_25dd5a152de0 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] cc5a2b93_5022_c511_3ed0_25dd5a152de0 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style cc5a2b93_5022_c511_3ed0_25dd5a152de0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Select as SelectPrimitive } from "radix-ui"
import { cn } from "@/registry/bases/radix/lib/utils"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function Select({
...props
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
return <SelectPrimitive.Root data-slot="select" {...props} />
}
function SelectGroup({
className,
...props
}: React.ComponentProps<typeof SelectPrimitive.Group>) {
return (
<SelectPrimitive.Group
data-slot="select-group"
className={cn("cn-select-group", className)}
{...props}
/>
)
}
function SelectValue({
...props
}: React.ComponentProps<typeof SelectPrimitive.Value>) {
return <SelectPrimitive.Value data-slot="select-value" {...props} />
}
function SelectTrigger({
className,
size = "default",
children,
...props
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
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 asChild>
<IconPlaceholder
lucide="ChevronDownIcon"
tabler="IconSelector"
hugeicons="UnfoldMoreIcon"
phosphor="CaretDownIcon"
remixicon="RiArrowDownSLine"
className="cn-select-trigger-icon pointer-events-none"
// ... (156 more lines)
Domain
Subdomains
Functions
Dependencies
- icon-placeholder
- radix-ui
- react
- utils
Source
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, ChartRegistry subdomain.
What functions are defined in select.tsx?
select.tsx defines 10 function(s): Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue.
What does select.tsx depend on?
select.tsx imports 4 module(s): icon-placeholder, radix-ui, react, utils.
Where is select.tsx in the architecture?
select.tsx is located at apps/v4/registry/bases/radix/ui/select.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free