Home / File/ input-group-dropdown.tsx — ui Source File

input-group-dropdown.tsx — ui Source File

Architecture documentation for input-group-dropdown.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
  c34d672d_350f_ae9d_203a_0f4d0ba19584["input-group-dropdown.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  c34d672d_350f_ae9d_203a_0f4d0ba19584 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  d1cb37f2_0d1d_01bc_0d60_a15219afac51["dropdown-menu"]
  c34d672d_350f_ae9d_203a_0f4d0ba19584 --> d1cb37f2_0d1d_01bc_0d60_a15219afac51
  41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b["input-group"]
  c34d672d_350f_ae9d_203a_0f4d0ba19584 --> 41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b
  style c34d672d_350f_ae9d_203a_0f4d0ba19584 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { ChevronDownIcon, MoreHorizontal } from "lucide-react"

import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuItem,
  DropdownMenuTrigger,
} from "@/registry/new-york-v4/ui/dropdown-menu"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/registry/new-york-v4/ui/input-group"

export default function InputGroupDropdown() {
  return (
    <div className="grid w-full max-w-sm gap-4">
      <InputGroup>
        <InputGroupInput placeholder="Enter file name" />
        <InputGroupAddon align="inline-end">
          <DropdownMenu>
            <DropdownMenuTrigger asChild>
              <InputGroupButton
                variant="ghost"
                aria-label="More"
                size="icon-xs"
              >
                <MoreHorizontal />
              </InputGroupButton>
            </DropdownMenuTrigger>
            <DropdownMenuContent align="end">
              <DropdownMenuItem>Settings</DropdownMenuItem>
              <DropdownMenuItem>Copy path</DropdownMenuItem>
              <DropdownMenuItem>Open location</DropdownMenuItem>
            </DropdownMenuContent>
          </DropdownMenu>
        </InputGroupAddon>
      </InputGroup>
      <InputGroup className="[--radius:1rem]">
        <InputGroupInput placeholder="Enter search query" />
        <InputGroupAddon align="inline-end">
          <DropdownMenu>
            <DropdownMenuTrigger asChild>
              <InputGroupButton variant="ghost" className="!pr-1.5 text-xs">
                Search In... <ChevronDownIcon className="size-3" />
              </InputGroupButton>
            </DropdownMenuTrigger>
            <DropdownMenuContent align="end" className="[--radius:0.95rem]">
              <DropdownMenuItem>Documentation</DropdownMenuItem>
              <DropdownMenuItem>Blog Posts</DropdownMenuItem>
              <DropdownMenuItem>Changelog</DropdownMenuItem>
            </DropdownMenuContent>
          </DropdownMenu>
        </InputGroupAddon>
      </InputGroup>
    </div>
  )
}

Subdomains

Dependencies

  • dropdown-menu
  • input-group
  • lucide-react

Frequently Asked Questions

What does input-group-dropdown.tsx do?
input-group-dropdown.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 input-group-dropdown.tsx?
input-group-dropdown.tsx defines 1 function(s): InputGroupDropdown.
What does input-group-dropdown.tsx depend on?
input-group-dropdown.tsx imports 3 module(s): dropdown-menu, input-group, lucide-react.
Where is input-group-dropdown.tsx in the architecture?
input-group-dropdown.tsx is located at apps/v4/registry/new-york-v4/examples/input-group-dropdown.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free