Home / Function/ SelectContent() — supabase Function Reference

SelectContent() — supabase Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/cms/src/components/ui/select.tsx lines 63–89

> = ({ children, className, position = 'popper', ref, ...props }) => (
  <SelectPrimitive.Portal>
    <SelectPrimitive.Content
      className={cn(
        'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
        position === 'popper' &&
          'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
        className
      )}
      position={position}
      ref={ref}
      {...props}
    >
      <SelectScrollUpButton />
      <SelectPrimitive.Viewport
        className={cn(
          'p-1',
          position === 'popper' &&
            'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'
        )}
      >
        {children}
      </SelectPrimitive.Viewport>
      <SelectScrollDownButton />
    </SelectPrimitive.Content>
  </SelectPrimitive.Portal>
)

Subdomains

Calls

Frequently Asked Questions

What does SelectContent() do?
SelectContent() is a function in the supabase codebase.
What does SelectContent() call?
SelectContent() 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