Home / File/ combobox-clear.tsx — ui Source File

combobox-clear.tsx — ui Source File

Architecture documentation for combobox-clear.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  56e70ed2_0225_f696_2f99_91830cc98eb0["combobox-clear.tsx"]
  b26067bf_0c7f_f0fc_eeee_221af6da4c0f["combobox"]
  56e70ed2_0225_f696_2f99_91830cc98eb0 --> b26067bf_0c7f_f0fc_eeee_221af6da4c0f
  style 56e70ed2_0225_f696_2f99_91830cc98eb0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import {
  Combobox,
  ComboboxContent,
  ComboboxEmpty,
  ComboboxInput,
  ComboboxItem,
  ComboboxList,
} from "@/examples/radix/ui/combobox"

const frameworks = [
  "Next.js",
  "SvelteKit",
  "Nuxt.js",
  "Remix",
  "Astro",
] as const

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

Dependencies

  • combobox

Frequently Asked Questions

What does combobox-clear.tsx do?
combobox-clear.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in combobox-clear.tsx?
combobox-clear.tsx defines 1 function(s): ComboboxWithClear.
What does combobox-clear.tsx depend on?
combobox-clear.tsx imports 1 module(s): combobox.
Where is combobox-clear.tsx in the architecture?
combobox-clear.tsx is located at apps/v4/examples/radix/combobox-clear.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free