input-group-button.tsx — ui Source File
Architecture documentation for input-group-button.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR a76088d1_6b42_7be0_a147_60d49e5d6049["input-group-button.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] a76088d1_6b42_7be0_a147_60d49e5d6049 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7["input-group"] a76088d1_6b42_7be0_a147_60d49e5d6049 --> d4ae1ebd_39ec_2b17_5c84_fbca1aec26c7 2a43f855_1408_526d_d4d2_31c7a87506c6["label"] a76088d1_6b42_7be0_a147_60d49e5d6049 --> 2a43f855_1408_526d_d4d2_31c7a87506c6 97b1d83c_62f2_f7a6_4edb_030a627d9a9d["popover"] a76088d1_6b42_7be0_a147_60d49e5d6049 --> 97b1d83c_62f2_f7a6_4edb_030a627d9a9d 39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"] a76088d1_6b42_7be0_a147_60d49e5d6049 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7 53860de0_4d86_dc1d_c85a_07c01f0d1a07["index.tsx"] 53860de0_4d86_dc1d_c85a_07c01f0d1a07 --> a76088d1_6b42_7be0_a147_60d49e5d6049 style a76088d1_6b42_7be0_a147_60d49e5d6049 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
} from "@/examples/radix/ui/input-group"
import { Label } from "@/examples/radix/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/examples/radix/ui/popover"
import { IconInfoCircle, IconStar } from "@tabler/icons-react"
export function InputGroupButtonExample() {
const [isFavorite, setIsFavorite] = React.useState(false)
return (
<div className="grid w-full max-w-sm gap-6">
<Label htmlFor="input-secure-19" className="sr-only">
Input Secure
</Label>
<InputGroup className="[--radius:9999px]">
<InputGroupInput id="input-secure-19" className="!pl-0.5" />
<Popover>
<PopoverTrigger asChild>
<InputGroupAddon>
<InputGroupButton
variant="secondary"
size="icon-xs"
aria-label="Info"
>
<IconInfoCircle />
</InputGroupButton>
</InputGroupAddon>
</PopoverTrigger>
<PopoverContent
align="start"
alignOffset={10}
className="flex flex-col gap-1 rounded-xl text-sm"
>
<p className="font-medium">Your connection is not secure.</p>
<p>You should not enter any sensitive information on this site.</p>
</PopoverContent>
</Popover>
<InputGroupAddon className="text-muted-foreground !pl-1">
https://
</InputGroupAddon>
<InputGroupAddon align="inline-end">
<InputGroupButton
onClick={() => setIsFavorite(!isFavorite)}
size="icon-xs"
aria-label="Favorite"
>
<IconStar
data-favorite={isFavorite}
className="data-[favorite=true]:fill-primary data-[favorite=true]:stroke-primary"
/>
</InputGroupButton>
</InputGroupAddon>
</InputGroup>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- icons-react
- input-group
- label
- popover
- react
Imported By
Source
Frequently Asked Questions
What does input-group-button.tsx do?
input-group-button.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-button.tsx?
input-group-button.tsx defines 1 function(s): InputGroupButtonExample.
What does input-group-button.tsx depend on?
input-group-button.tsx imports 5 module(s): icons-react, input-group, label, popover, react.
What files import input-group-button.tsx?
input-group-button.tsx is imported by 1 file(s): index.tsx.
Where is input-group-button.tsx in the architecture?
input-group-button.tsx is located at apps/v4/app/(app)/(root)/components/input-group-button.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free