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 DocumentationAtlas SearchAPI 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  7800d416_ff6c_c273_0525_c412ee75f826["input-group-label.tsx"]
  4a37d855_5768_bc5a_31ae_9f42eba9091a["input-group"]
  7800d416_ff6c_c273_0525_c412ee75f826 --> 4a37d855_5768_bc5a_31ae_9f42eba9091a
  e632ae84_c5fb_40c9_7b9d_82d10e757faf["label"]
  7800d416_ff6c_c273_0525_c412ee75f826 --> e632ae84_c5fb_40c9_7b9d_82d10e757faf
  9612f2e9_e46d_ea6f_58cb_6612bdce7491["tooltip"]
  7800d416_ff6c_c273_0525_c412ee75f826 --> 9612f2e9_e46d_ea6f_58cb_6612bdce7491
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  7800d416_ff6c_c273_0525_c412ee75f826 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 7800d416_ff6c_c273_0525_c412ee75f826 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/examples/base/ui/input-group"
import { Label } from "@/examples/base/ui/label"
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/examples/base/ui/tooltip"
import { InfoIcon } from "lucide-react"

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

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 DocumentationAtlas domain, SearchAPI 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/examples/base/input-group-label.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free