dialog-close-button.tsx — ui Source File
Architecture documentation for dialog-close-button.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8["dialog-close-button.tsx"] 57e86e45_ac6e_7278_be08_9092724e8401["button"] 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8 --> 57e86e45_ac6e_7278_be08_9092724e8401 0896a8fa_5462_a73a_5add_fb8176921778["dialog"] 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8 --> 0896a8fa_5462_a73a_5add_fb8176921778 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d style 60ce02a0_5e1b_3c46_19be_3c3dd8fb60f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/new-york-v4/ui/dialog"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
export default function DialogCloseButton() {
return (
<Dialog>
<DialogTrigger asChild>
<Button variant="outline">Share</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle>Share link</DialogTitle>
<DialogDescription>
Anyone who has this link will be able to view this.
</DialogDescription>
</DialogHeader>
<div className="flex items-center gap-2">
<div className="grid flex-1 gap-2">
<Label htmlFor="link" className="sr-only">
Link
</Label>
<Input
id="link"
defaultValue="https://ui.shadcn.com/docs/installation"
readOnly
/>
</div>
</div>
<DialogFooter className="sm:justify-start">
<DialogClose asChild>
<Button type="button" variant="secondary">
Close
</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- dialog
- input
- label
Source
Frequently Asked Questions
What does dialog-close-button.tsx do?
dialog-close-button.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in dialog-close-button.tsx?
dialog-close-button.tsx defines 1 function(s): DialogCloseButton.
What does dialog-close-button.tsx depend on?
dialog-close-button.tsx imports 4 module(s): button, dialog, input, label.
Where is dialog-close-button.tsx in the architecture?
dialog-close-button.tsx is located at apps/v4/registry/new-york-v4/examples/dialog-close-button.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free