Home / Function/ ComboboxWithGroups() — ui Function Reference

ComboboxWithGroups() — ui Function Reference

Architecture documentation for the ComboboxWithGroups() function in combobox-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4a21d086_ede5_12ba_fa93_4ef7034d2a35["ComboboxWithGroups()"]
  08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a["combobox-example.tsx"]
  4a21d086_ede5_12ba_fa93_4ef7034d2a35 -->|defined in| 08c943e1_cbb3_6c4d_0fd2_1693e54a1d0a
  style 4a21d086_ede5_12ba_fa93_4ef7034d2a35 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/combobox-example.tsx lines 718–743

function ComboboxWithGroups() {
  return (
    <Example title="With Groups">
      <Combobox items={timezones}>
        <ComboboxInput placeholder="Select a timezone" />
        <ComboboxContent>
          <ComboboxEmpty>No timezones found.</ComboboxEmpty>
          <ComboboxList>
            {(group) => (
              <ComboboxGroup key={group.value} items={group.items}>
                <ComboboxLabel>{group.value}</ComboboxLabel>
                <ComboboxCollection>
                  {(item) => (
                    <ComboboxItem key={item} value={item}>
                      {item}
                    </ComboboxItem>
                  )}
                </ComboboxCollection>
              </ComboboxGroup>
            )}
          </ComboboxList>
        </ComboboxContent>
      </Combobox>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxWithGroups() do?
ComboboxWithGroups() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/combobox-example.tsx.
Where is ComboboxWithGroups() defined?
ComboboxWithGroups() is defined in apps/v4/registry/bases/base/examples/combobox-example.tsx at line 718.

Analyze Your Own Codebase

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

Try Supermodel Free