Home / Function/ SelectTrigger() — supabase Function Reference

SelectTrigger() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d1b736fc_8144_01f2_181a_781fa46cf0d6["SelectTrigger()"]
  6215f5f8_959b_0d27_9c02_ce5f395aab88["cn()"]
  d1b736fc_8144_01f2_181a_781fa46cf0d6 -->|calls| 6215f5f8_959b_0d27_9c02_ce5f395aab88
  style d1b736fc_8144_01f2_181a_781fa46cf0d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/cms/src/components/ui/select.tsx lines 17–31

> = ({ children, className, ref, ...props }) => (
  <SelectPrimitive.Trigger
    className={cn(
      'flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
      className
    )}
    ref={ref}
    {...props}
  >
    {children}
    <SelectPrimitive.Icon asChild>
      <ChevronDown className="h-4 w-4 opacity-50" />
    </SelectPrimitive.Icon>
  </SelectPrimitive.Trigger>
)

Subdomains

Calls

Frequently Asked Questions

What does SelectTrigger() do?
SelectTrigger() is a function in the supabase codebase.
What does SelectTrigger() call?
SelectTrigger() calls 1 function(s): cn.

Analyze Your Own Codebase

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

Try Supermodel Free