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
  fa21b9a2_d453_7b91_d4a1_427d13132647["SearchForm()"]
  be795d7b_af3f_f48a_4558_dce878a827e9["search-form.tsx"]
  fa21b9a2_d453_7b91_d4a1_427d13132647 -->|defined in| be795d7b_af3f_f48a_4558_dce878a827e9
  style fa21b9a2_d453_7b91_d4a1_427d13132647 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx lines 10–28

export function SearchForm({ ...props }: React.ComponentProps<"form">) {
  return (
    <form {...props}>
      <SidebarGroup className="py-0">
        <SidebarGroupContent className="relative">
          <Label htmlFor="search" className="sr-only">
            Search
          </Label>
          <SidebarInput
            id="search"
            placeholder="Search the docs..."
            className="pl-8"
          />
          <Search className="pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none" />
        </SidebarGroupContent>
      </SidebarGroup>
    </form>
  )
}

Subdomains

Frequently Asked Questions

What does SearchForm() do?
SearchForm() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx.
Where is SearchForm() defined?
SearchForm() is defined in apps/v4/registry/new-york-v4/blocks/sidebar-05/components/search-form.tsx at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free