DialogCloseButton() — ui Function Reference
Architecture documentation for the DialogCloseButton() function in dialog-close-button.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 21baec2f_128e_e714_1615_1795a03f9f5a["DialogCloseButton()"] 537e1cc7_e2a7_9c50_d3bd_c5393493c4e3["dialog-close-button.tsx"] 21baec2f_128e_e714_1615_1795a03f9f5a -->|defined in| 537e1cc7_e2a7_9c50_d3bd_c5393493c4e3 style 21baec2f_128e_e714_1615_1795a03f9f5a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/examples/dialog-close-button.tsx lines 17–56
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
Source
Frequently Asked Questions
What does DialogCloseButton() do?
DialogCloseButton() is a function in the ui codebase, defined in deprecated/www/registry/default/examples/dialog-close-button.tsx.
Where is DialogCloseButton() defined?
DialogCloseButton() is defined in deprecated/www/registry/default/examples/dialog-close-button.tsx at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free