Function
DialogFooter
({
className,
showCloseButton = false,
children,
...props
}: React.ComponentProps<"div"> & {
showCloseButton?: boolean;
})
Source from the content-addressed store, hash-verified
| 105 | } |
| 106 | |
| 107 | function DialogFooter({ |
| 108 | className, |
| 109 | showCloseButton = false, |
| 110 | children, |
| 111 | ...props |
| 112 | }: React.ComponentProps<"div"> & { |
| 113 | showCloseButton?: boolean; |
| 114 | }) { |
| 115 | return ( |
| 116 | <div |
| 117 | data-slot="dialog-footer" |
| 118 | className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)} |
| 119 | {...props} |
| 120 | > |
| 121 | {children} |
| 122 | {showCloseButton && ( |
| 123 | <DialogPrimitive.Close asChild> |
| 124 | <Button variant="outline">Close</Button> |
| 125 | </DialogPrimitive.Close> |
| 126 | )} |
| 127 | </div> |
| 128 | ); |
| 129 | } |
| 130 | |
| 131 | function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) { |
| 132 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected