Home / File/ search-form.tsx — ui Source File

search-form.tsx — ui Source File

Architecture documentation for search-form.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  1cb1285c_7a86_d4c1_086f_40120cfe5d67["search-form.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  1cb1285c_7a86_d4c1_086f_40120cfe5d67 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  1cb1285c_7a86_d4c1_086f_40120cfe5d67 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  6ff5c02b_2b25_4633_4ccd_fd28f2f55862["sidebar"]
  1cb1285c_7a86_d4c1_086f_40120cfe5d67 --> 6ff5c02b_2b25_4633_4ccd_fd28f2f55862
  style 1cb1285c_7a86_d4c1_086f_40120cfe5d67 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Search } from "lucide-react"

import { Label } from "@/registry/new-york/ui/label"
import {
  SidebarGroup,
  SidebarGroupContent,
  SidebarInput,
} from "@/registry/new-york/ui/sidebar"

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 left-2 top-1/2 size-4 -translate-y-1/2 select-none opacity-50" />
        </SidebarGroupContent>
      </SidebarGroup>
    </form>
  )
}

Subdomains

Functions

Dependencies

  • label
  • lucide-react
  • sidebar

Frequently Asked Questions

What does search-form.tsx do?
search-form.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in search-form.tsx?
search-form.tsx defines 1 function(s): SearchForm.
What does search-form.tsx depend on?
search-form.tsx imports 3 module(s): label, lucide-react, sidebar.
Where is search-form.tsx in the architecture?
search-form.tsx is located at deprecated/www/registry/new-york/blocks/sidebar-05/components/search-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/blocks/sidebar-05/components).

Analyze Your Own Codebase

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

Try Supermodel Free