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
  ce0b6c68_c368_ee21_449c_4cc161db473f["search-form.tsx"]
  00db19de_4bff_5fd7_3fcb_a9b94babaf3b["label"]
  ce0b6c68_c368_ee21_449c_4cc161db473f --> 00db19de_4bff_5fd7_3fcb_a9b94babaf3b
  f1a5091e_9f4f_a457_6394_4e05eb42bbf1["sidebar"]
  ce0b6c68_c368_ee21_449c_4cc161db473f --> f1a5091e_9f4f_a457_6394_4e05eb42bbf1
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  ce0b6c68_c368_ee21_449c_4cc161db473f --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style ce0b6c68_c368_ee21_449c_4cc161db473f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Label } from "@/registry/bases/base/ui/label"
import { 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}>
      <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

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-16/components/search-form.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/blocks/sidebar-16/components).

Analyze Your Own Codebase

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

Try Supermodel Free