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

input-group-label.tsx — ui Source File

Architecture documentation for input-group-label.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  eee96ba2_addf_8e9a_acbb_d738aa297957["input-group-label.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  eee96ba2_addf_8e9a_acbb_d738aa297957 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b["input-group"]
  eee96ba2_addf_8e9a_acbb_d738aa297957 --> 41df1c2c_a3b4_dc22_8bc9_310fe8b6ba9b
  d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"]
  eee96ba2_addf_8e9a_acbb_d738aa297957 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d
  a2518e24_160d_3f8f_bb12_2206d8e84ab8["tooltip"]
  eee96ba2_addf_8e9a_acbb_d738aa297957 --> a2518e24_160d_3f8f_bb12_2206d8e84ab8
  style eee96ba2_addf_8e9a_acbb_d738aa297957 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { InfoIcon } from "lucide-react"

import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/registry/new-york-v4/ui/input-group"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/registry/new-york-v4/ui/tooltip"

export default function InputGroupLabel() {
  return (
    <div className="grid w-full max-w-sm gap-4">
      <InputGroup>
        <InputGroupInput id="email" placeholder="shadcn" />
        <InputGroupAddon>
          <Label htmlFor="email">@</Label>
        </InputGroupAddon>
      </InputGroup>
      <InputGroup>
        <InputGroupInput id="email-2" placeholder="shadcn@vercel.com" />
        <InputGroupAddon align="block-start">
          <Label htmlFor="email-2" className="text-foreground">
            Email
          </Label>
          <Tooltip>
            <TooltipTrigger asChild>
              <InputGroupButton
                variant="ghost"
                aria-label="Help"
                className="ml-auto rounded-full"
                size="icon-xs"
              >
                <InfoIcon />
              </InputGroupButton>
            </TooltipTrigger>
            <TooltipContent>
              <p>We&apos;ll use this to send you notifications</p>
            </TooltipContent>
          </Tooltip>
        </InputGroupAddon>
      </InputGroup>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • input-group
  • label
  • lucide-react
  • tooltip

Frequently Asked Questions

What does input-group-label.tsx do?
input-group-label.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-label.tsx?
input-group-label.tsx defines 1 function(s): InputGroupLabel.
What does input-group-label.tsx depend on?
input-group-label.tsx imports 4 module(s): input-group, label, lucide-react, tooltip.
Where is input-group-label.tsx in the architecture?
input-group-label.tsx is located at apps/v4/registry/new-york-v4/examples/input-group-label.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