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 UIPrimitives 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  51a97450_b1ee_5d21_622d_d6e8c96b32dc["search-form.tsx"]
  00db19de_4bff_5fd7_3fcb_a9b94babaf3b["label"]
  51a97450_b1ee_5d21_622d_d6e8c96b32dc --> 00db19de_4bff_5fd7_3fcb_a9b94babaf3b
  f1a5091e_9f4f_a457_6394_4e05eb42bbf1["sidebar"]
  51a97450_b1ee_5d21_622d_d6e8c96b32dc --> f1a5091e_9f4f_a457_6394_4e05eb42bbf1
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  51a97450_b1ee_5d21_622d_d6e8c96b32dc --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 51a97450_b1ee_5d21_622d_d6e8c96b32dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Label } from "@/registry/bases/base/ui/label"
import {
  SidebarGroup,
  SidebarGroupContent,
  SidebarInput,
} from "@/registry/bases/base/ui/sidebar"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

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"
          />
          <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"
          />
        </SidebarGroupContent>
      </SidebarGroup>
    </form>
  )
}

Subdomains

Functions

Dependencies

  • icon-placeholder
  • label
  • 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, UIPrimitives 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): icon-placeholder, label, sidebar.
Where is search-form.tsx in the architecture?
search-form.tsx is located at apps/v4/registry/bases/base/blocks/sidebar-01/components/search-form.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/blocks/sidebar-01/components).

Analyze Your Own Codebase

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

Try Supermodel Free