MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / DialogFooter

Function DialogFooter

packages/react/src/components/dialog.tsx:107–129  ·  view source on GitHub ↗
({
  className,
  showCloseButton = false,
  children,
  ...props
}: React.ComponentProps<"div"> & {
  showCloseButton?: boolean;
})

Source from the content-addressed store, hash-verified

105}
106
107function 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
131function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {
132 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected