Home / Function/ ComboboxWithClear() — ui Function Reference

ComboboxWithClear() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/combobox-example.tsx lines 661–679

function ComboboxWithClear() {
  return (
    <Example title="With Clear Button">
      <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>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free