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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-02/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-02/components/search-form.tsx.
Where is SearchForm() defined?
SearchForm() is defined in apps/v4/registry/new-york-v4/blocks/sidebar-02/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