InputGroupWithTooltip() — ui Function Reference
Architecture documentation for the InputGroupWithTooltip() function in input-group-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD fb9307f3_4251_eece_92c4_cb29651f9ec5["InputGroupWithTooltip()"] a740b52a_e6c2_0afa_8096_0716feaa239c["input-group-example.tsx"] fb9307f3_4251_eece_92c4_cb29651f9ec5 -->|defined in| a740b52a_e6c2_0afa_8096_0716feaa239c style fb9307f3_4251_eece_92c4_cb29651f9ec5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/input-group-example.tsx lines 359–511
function InputGroupWithTooltip({
country,
setCountry,
}: {
country: string
setCountry: (value: string) => void
}) {
return (
<Example title="With Tooltip, Dropdown, Popover">
<FieldGroup>
<Field>
<FieldLabel htmlFor="input-tooltip-20">Tooltip</FieldLabel>
<InputGroup>
<InputGroupInput id="input-tooltip-20" />
<InputGroupAddon align="inline-end">
<Tooltip>
<TooltipTrigger
render={
<InputGroupButton className="rounded-full" size="icon-xs" />
}
>
<IconPlaceholder
lucide="InfoIcon"
tabler="IconInfoCircle"
hugeicons="AlertCircleIcon"
phosphor="InfoIcon"
remixicon="RiInformationLine"
/>
</TooltipTrigger>
<TooltipContent>This is content in a tooltip.</TooltipContent>
</Tooltip>
</InputGroupAddon>
</InputGroup>
<FieldDescription>
This is a description of the input group.
</FieldDescription>
</Field>
<Field>
<FieldLabel htmlFor="input-dropdown-21">Dropdown</FieldLabel>
<InputGroup>
<InputGroupInput id="input-dropdown-21" />
<InputGroupAddon>
<DropdownMenu>
<DropdownMenuTrigger
render={
<InputGroupButton className="text-muted-foreground tabular-nums" />
}
>
{country}{" "}
<IconPlaceholder
lucide="ChevronDownIcon"
tabler="IconChevronDown"
hugeicons="ArrowDownIcon"
phosphor="CaretDownIcon"
remixicon="RiArrowDownSLine"
/>
</DropdownMenuTrigger>
<DropdownMenuContent
align="start"
className="min-w-16"
sideOffset={10}
alignOffset={-8}
>
<DropdownMenuItem onClick={() => setCountry("+1")}>
+1
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setCountry("+44")}>
+44
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setCountry("+46")}>
+46
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</InputGroupAddon>
</InputGroup>
<FieldDescription>
This is a description of the input group.
</FieldDescription>
</Field>
<Field>
Domain
Subdomains
Source
Frequently Asked Questions
What does InputGroupWithTooltip() do?
InputGroupWithTooltip() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/input-group-example.tsx.
Where is InputGroupWithTooltip() defined?
InputGroupWithTooltip() is defined in apps/v4/registry/bases/base/examples/input-group-example.tsx at line 359.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free