Home / Function/ InputGroupLabel() — ui Function Reference

InputGroupLabel() — ui Function Reference

Architecture documentation for the InputGroupLabel() function in input-group-label.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7c297e0f_69c6_595f_c1f0_f11f3868a3f9["InputGroupLabel()"]
  7800d416_ff6c_c273_0525_c412ee75f826["input-group-label.tsx"]
  7c297e0f_69c6_595f_c1f0_f11f3868a3f9 -->|defined in| 7800d416_ff6c_c273_0525_c412ee75f826
  style 7c297e0f_69c6_595f_c1f0_f11f3868a3f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/input-group-label.tsx lines 15–51

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
              render={
                <InputGroupButton
                  variant="ghost"
                  aria-label="Help"
                  className="ml-auto rounded-full"
                  size="icon-xs"
                />
              }
            >
              <InfoIcon />
            </TooltipTrigger>
            <TooltipContent>
              <p>We&apos;ll use this to send you notifications</p>
            </TooltipContent>
          </Tooltip>
        </InputGroupAddon>
      </InputGroup>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does InputGroupLabel() do?
InputGroupLabel() is a function in the ui codebase, defined in apps/v4/examples/base/input-group-label.tsx.
Where is InputGroupLabel() defined?
InputGroupLabel() is defined in apps/v4/examples/base/input-group-label.tsx at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free