DialogWithStickyFooter() — ui Function Reference
Architecture documentation for the DialogWithStickyFooter() function in dialog-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c9a35bcc_4fc0_99b6_c36d_efa007c8d80b["DialogWithStickyFooter()"] e4b1833d_78ba_c075_e3db_d6f5313c227b["dialog-demo.tsx"] c9a35bcc_4fc0_99b6_c36d_efa007c8d80b -->|defined in| e4b1833d_78ba_c075_e3db_d6f5313c227b style c9a35bcc_4fc0_99b6_c36d_efa007c8d80b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(internal)/sink/components/dialog-demo.tsx lines 94–129
function DialogWithStickyFooter() {
return (
<Dialog>
<DialogTrigger asChild>
<Button variant="outline">Sticky Footer</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-lg">
<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>
<DialogFooter>
<DialogClose asChild>
<Button variant="outline">Close</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DialogWithStickyFooter() do?
DialogWithStickyFooter() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx.
Where is DialogWithStickyFooter() defined?
DialogWithStickyFooter() is defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx at line 94.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free