Home / Function/ ComboboxContent() — ui Function Reference

ComboboxContent() — ui Function Reference

Architecture documentation for the ComboboxContent() function in combobox.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0bba842a_df20_d4c5_9c67_5fe6f43bf695["ComboboxContent()"]
  07d0225b_e62e_2bb7_a43c_705ab3ab636d["combobox.tsx"]
  0bba842a_df20_d4c5_9c67_5fe6f43bf695 -->|defined in| 07d0225b_e62e_2bb7_a43c_705ab3ab636d
  style 0bba842a_df20_d4c5_9c67_5fe6f43bf695 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/combobox.tsx lines 103–138

function ComboboxContent({
  className,
  side = "bottom",
  sideOffset = 6,
  align = "start",
  alignOffset = 0,
  anchor,
  ...props
}: ComboboxPrimitive.Popup.Props &
  Pick<
    ComboboxPrimitive.Positioner.Props,
    "side" | "align" | "sideOffset" | "alignOffset" | "anchor"
  >) {
  return (
    <ComboboxPrimitive.Portal>
      <ComboboxPrimitive.Positioner
        side={side}
        sideOffset={sideOffset}
        align={align}
        alignOffset={alignOffset}
        anchor={anchor}
        className="isolate z-50"
      >
        <ComboboxPrimitive.Popup
          data-slot="combobox-content"
          data-chips={!!anchor}
          className={cn(
            "cn-combobox-content cn-combobox-content-logical cn-menu-target group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)",
            className
          )}
          {...props}
        />
      </ComboboxPrimitive.Positioner>
    </ComboboxPrimitive.Portal>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxContent() do?
ComboboxContent() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/combobox.tsx.
Where is ComboboxContent() defined?
ComboboxContent() is defined in apps/v4/registry/bases/radix/ui/combobox.tsx at line 103.

Analyze Your Own Codebase

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

Try Supermodel Free