Home / Function/ ComboboxWithClear() — ui Function Reference

ComboboxWithClear() — ui Function Reference

Architecture documentation for the ComboboxWithClear() function in combobox-clear.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  dc81ed21_f249_608f_a74d_13c78e028028["ComboboxWithClear()"]
  3ecb767b_c409_45c5_cd58_fe0c6e6d16b4["combobox-clear.tsx"]
  dc81ed21_f249_608f_a74d_13c78e028028 -->|defined in| 3ecb767b_c409_45c5_cd58_fe0c6e6d16b4
  style dc81ed21_f249_608f_a74d_13c78e028028 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/combobox-clear.tsx lines 20–36

export function ComboboxWithClear() {
  return (
    <Combobox items={frameworks} defaultValue={frameworks[0]}>
      <ComboboxInput placeholder="Select a framework" showClear />
      <ComboboxContent>
        <ComboboxEmpty>No items found.</ComboboxEmpty>
        <ComboboxList>
          {(item) => (
            <ComboboxItem key={item} value={item}>
              {item}
            </ComboboxItem>
          )}
        </ComboboxList>
      </ComboboxContent>
    </Combobox>
  )
}

Subdomains

Frequently Asked Questions

What does ComboboxWithClear() do?
ComboboxWithClear() is a function in the ui codebase, defined in apps/v4/examples/base/combobox-clear.tsx.
Where is ComboboxWithClear() defined?
ComboboxWithClear() is defined in apps/v4/examples/base/combobox-clear.tsx at line 20.

Analyze Your Own Codebase

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

Try Supermodel Free