dialog-close-button.tsx — ui Source File
Architecture documentation for dialog-close-button.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 93859c1a_e000_d57a_ce41_68a5a9b3ab48["dialog-close-button.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 93859c1a_e000_d57a_ce41_68a5a9b3ab48 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 93859c1a_e000_d57a_ce41_68a5a9b3ab48 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e["dialog"] 93859c1a_e000_d57a_ce41_68a5a9b3ab48 --> 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"] 93859c1a_e000_d57a_ce41_68a5a9b3ab48 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] 93859c1a_e000_d57a_ce41_68a5a9b3ab48 --> fa665cdb_5f79_b81a_95ab_12ba182fc175 style 93859c1a_e000_d57a_ce41_68a5a9b3ab48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Copy } from "lucide-react"
import { Button } from "@/registry/new-york/ui/button"
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/new-york/ui/dialog"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/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 space-x-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>
<Button type="submit" size="sm" className="px-3">
<span className="sr-only">Copy</span>
<Copy />
</Button>
</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
- lucide-react
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 5 module(s): button, dialog, input, label, lucide-react.
Where is dialog-close-button.tsx in the architecture?
dialog-close-button.tsx is located at deprecated/www/registry/new-york/examples/dialog-close-button.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free