Home / Function/ SelectTrigger() — ui Function Reference

SelectTrigger() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3e3c5b6a_cc14_b9bf_4c76_c944cb55d91b["SelectTrigger()"]
  8ec2ba55_c5b8_dd05_8c62_e29326f13c29["select.tsx"]
  3e3c5b6a_cc14_b9bf_4c76_c944cb55d91b -->|defined in| 8ec2ba55_c5b8_dd05_8c62_e29326f13c29
  style 3e3c5b6a_cc14_b9bf_4c76_c944cb55d91b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/ui/select.tsx lines 31–64

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"
          />
        }
      />
    </SelectPrimitive.Trigger>
  )
}

Subdomains

Frequently Asked Questions

What does SelectTrigger() do?
SelectTrigger() is a function in the ui codebase, defined in apps/v4/registry/bases/base/ui/select.tsx.
Where is SelectTrigger() defined?
SelectTrigger() is defined in apps/v4/registry/bases/base/ui/select.tsx at line 31.

Analyze Your Own Codebase

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

Try Supermodel Free