DialogWithStickyFooter() — ui Function Reference
Architecture documentation for the DialogWithStickyFooter() function in dialog-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4cf107ef_8055_6ce1_a20f_45553889b456["DialogWithStickyFooter()"] c1073453_2b4c_c2d5_cfa5_9971cf4ab47b["dialog-example.tsx"] 4cf107ef_8055_6ce1_a20f_45553889b456 -->|defined in| c1073453_2b4c_c2d5_cfa5_9971cf4ab47b style 4cf107ef_8055_6ce1_a20f_45553889b456 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/dialog-example.tsx lines 158–197
function DialogWithStickyFooter() {
return (
<Example title="With Sticky Footer" className="items-center justify-center">
<Dialog>
<DialogTrigger render={<Button variant="outline" />}>
Sticky Footer
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Scrollable Content</DialogTitle>
<DialogDescription>
This is a dialog with scrollable content.
</DialogDescription>
</DialogHeader>
<div className="style-nova:-mx-4 style-nova:px-4 no-scrollbar style-vega:px-6 style-mira:px-4 style-maia:px-6 style-vega:-mx-6 style-maia:-mx-6 style-mira:-mx-4 style-lyra:-mx-4 style-lyra:px-4 max-h-[70vh] overflow-y-auto">
{Array.from({ length: 10 }).map((_, index) => (
<p
key={index}
className="style-lyra:mb-2 style-lyra:leading-relaxed 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 render={<Button variant="outline" />}>
Close
</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DialogWithStickyFooter() do?
DialogWithStickyFooter() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/dialog-example.tsx.
Where is DialogWithStickyFooter() defined?
DialogWithStickyFooter() is defined in apps/v4/registry/bases/base/examples/dialog-example.tsx at line 158.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free