Home / Function/ DialogScrollableContent() — ui Function Reference

DialogScrollableContent() — ui Function Reference

Architecture documentation for the DialogScrollableContent() function in dialog-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c1e1f762_3aa1_f731_0edf_452994de8955["DialogScrollableContent()"]
  e4b1833d_78ba_c075_e3db_d6f5313c227b["dialog-demo.tsx"]
  c1e1f762_3aa1_f731_0edf_452994de8955 -->|defined in| e4b1833d_78ba_c075_e3db_d6f5313c227b
  style c1e1f762_3aa1_f731_0edf_452994de8955 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/dialog-demo.tsx lines 62–92

function DialogScrollableContent() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="outline">Scrollable Content</Button>
      </DialogTrigger>
      <DialogContent className="sm:max-w-[425px]">
        <DialogHeader>
          <DialogTitle>Scrollable Content</DialogTitle>
          <DialogDescription>
            This is a dialog with scrollable content.
          </DialogDescription>
        </DialogHeader>
        <div className="-mx-6 max-h-[500px] overflow-y-auto px-6 text-sm">
          <h4 className="mb-4 text-lg leading-none font-medium">Lorem Ipsum</h4>
          {Array.from({ length: 10 }).map((_, index) => (
            <p key={index} className="mb-4 leading-normal">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do
              eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
              enim ad minim veniam, quis nostrud exercitation ullamco laboris
              nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
              reprehenderit in voluptate velit esse cillum dolore eu fugiat
              nulla pariatur. Excepteur sint occaecat cupidatat non proident,
              sunt in culpa qui officia deserunt mollit anim id est laborum.
            </p>
          ))}
        </div>
      </DialogContent>
    </Dialog>
  )
}

Subdomains

Frequently Asked Questions

What does DialogScrollableContent() do?
DialogScrollableContent() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx.
Where is DialogScrollableContent() defined?
DialogScrollableContent() is defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx at line 62.

Analyze Your Own Codebase

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

Try Supermodel Free