Home / Function/ SearchForm() — ui Function Reference

SearchForm() — ui Function Reference

Architecture documentation for the SearchForm() function in search-form.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  57e2a45f_4dbf_5854_7ad3_761068f28fa9["SearchForm()"]
  e07c4915_99d1_73d1_2e96_efea554d6620["search-form.tsx"]
  57e2a45f_4dbf_5854_7ad3_761068f28fa9 -->|defined in| e07c4915_99d1_73d1_2e96_efea554d6620
  style 57e2a45f_4dbf_5854_7ad3_761068f28fa9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/sidebar-16/components/search-form.tsx lines 7–30

export function SearchForm({ ...props }: React.ComponentProps<"form">) {
  return (
    <form {...props}>
      <div className="relative">
        <Label htmlFor="search" className="sr-only">
          Search
        </Label>
        <SidebarInput
          id="search"
          placeholder="Type to search..."
          className="h-8 pl-7"
        />
        <IconPlaceholder
          lucide="SearchIcon"
          tabler="IconSearch"
          hugeicons="SearchIcon"
          phosphor="MagnifyingGlassIcon"
          remixicon="RiSearchLine"
          className="pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none"
        />
      </div>
    </form>
  )
}

Subdomains

Frequently Asked Questions

What does SearchForm() do?
SearchForm() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/sidebar-16/components/search-form.tsx.
Where is SearchForm() defined?
SearchForm() is defined in apps/v4/registry/bases/radix/blocks/sidebar-16/components/search-form.tsx at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free