Home / File/ dialog-close-button.tsx — ui Source File

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.

File tsx DocumentationAtlas ContentSourcing 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  680995fa_e20e_c3fd_316e_ae7a65b9faa8["dialog-close-button.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  680995fa_e20e_c3fd_316e_ae7a65b9faa8 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  1302ba46_078b_fe14_24f5_044257f9b4d6["dialog"]
  680995fa_e20e_c3fd_316e_ae7a65b9faa8 --> 1302ba46_078b_fe14_24f5_044257f9b4d6
  9a309fc5_4306_d01f_08ce_72db23e48652["input"]
  680995fa_e20e_c3fd_316e_ae7a65b9faa8 --> 9a309fc5_4306_d01f_08ce_72db23e48652
  e632ae84_c5fb_40c9_7b9d_82d10e757faf["label"]
  680995fa_e20e_c3fd_316e_ae7a65b9faa8 --> e632ae84_c5fb_40c9_7b9d_82d10e757faf
  style 680995fa_e20e_c3fd_316e_ae7a65b9faa8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/base/ui/button"
import {
  Dialog,
  DialogClose,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/examples/base/ui/dialog"
import { Input } from "@/examples/base/ui/input"
import { Label } from "@/examples/base/ui/label"

export function DialogCloseButton() {
  return (
    <Dialog>
      <DialogTrigger render={<Button variant="outline" />}>Share</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 render={<Button type="button" />}>Close</DialogClose>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  )
}

Subdomains

Dependencies

  • button
  • dialog
  • input
  • label

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 DocumentationAtlas domain, ContentSourcing 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/examples/base/dialog-close-button.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free