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