Home / File/ input-group-with-tooltip.tsx — ui Source File

input-group-with-tooltip.tsx — ui Source File

Architecture documentation for input-group-with-tooltip.tsx, a tsx file in the ui codebase. 10 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 10 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  2e43a813_b520_267b_0b51_8e19ddff2b6c["input-group-with-tooltip.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  18f6542f_51e6_ba81_129a_f0eef8a35168["button-group"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> 18f6542f_51e6_ba81_129a_f0eef8a35168
  c4660ec2_c67c_8de8_aea3_ab3bf7989b6f["dropdown-menu"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> c4660ec2_c67c_8de8_aea3_ab3bf7989b6f
  b5f68436_cf6b_fba3_fb29_abf27fd13442["field"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> b5f68436_cf6b_fba3_fb29_abf27fd13442
  9af00736_7b63_3c3c_87d0_68c5200c5d80["input"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> 9af00736_7b63_3c3c_87d0_68c5200c5d80
  d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7["input-group"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7
  97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d
  2e5ffaa4_e254_231d_7f3e_d1b7ff0bfae7["tooltip"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> 2e5ffaa4_e254_231d_7f3e_d1b7ff0bfae7
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  e750d152_1191_1793_7244_99c7f9c595f4["sonner"]
  2e43a813_b520_267b_0b51_8e19ddff2b6c --> e750d152_1191_1793_7244_99c7f9c595f4
  style 2e43a813_b520_267b_0b51_8e19ddff2b6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Button } from "@/examples/radix/ui/button"
import { ButtonGroup, ButtonGroupText } from "@/examples/radix/ui/button-group"
import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuItem,
  DropdownMenuTrigger,
} from "@/examples/radix/ui/dropdown-menu"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
} from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/examples/radix/ui/input-group"
import {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@/examples/radix/ui/popover"
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/examples/radix/ui/tooltip"
import { ChevronDownIcon, InfoIcon, StarIcon } from "lucide-react"
import { toast } from "sonner"

export function InputGroupWithTooltip({
  country,
  setCountry,
}: {
  country: string
  setCountry: (value: string) => void
}) {
  return (
    <FieldGroup>
      <Field>
        <FieldLabel htmlFor="input-tooltip-20">Tooltip</FieldLabel>
        <InputGroup>
          <InputGroupInput id="input-tooltip-20" />
          <InputGroupAddon align="inline-end">
            <Tooltip>
              <TooltipTrigger asChild>
                <InputGroupButton className="rounded-full" size="icon-xs">
                  <InfoIcon />
                </InputGroupButton>
              </TooltipTrigger>
              <TooltipContent>This is content in a tooltip.</TooltipContent>
// ... (98 more lines)

Subdomains

Dependencies

  • button
  • button-group
  • dropdown-menu
  • field
  • input
  • input-group
  • lucide-react
  • popover
  • sonner
  • tooltip

Frequently Asked Questions

What does input-group-with-tooltip.tsx do?
input-group-with-tooltip.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in input-group-with-tooltip.tsx?
input-group-with-tooltip.tsx defines 1 function(s): InputGroupWithTooltip.
What does input-group-with-tooltip.tsx depend on?
input-group-with-tooltip.tsx imports 10 module(s): button, button-group, dropdown-menu, field, input, input-group, lucide-react, popover, and 2 more.
Where is input-group-with-tooltip.tsx in the architecture?
input-group-with-tooltip.tsx is located at apps/v4/examples/radix/input-group-with-tooltip.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free