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

Function DialogFooter

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

Source from the content-addressed store, hash-verified

114}
115
116function 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
140function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {
141 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected