MCPcopy Create free account
hub / github.com/bytebase/dbhub / SheetFooter

Function SheetFooter

frontend/src/components/ui/sheet.tsx:122–142  ·  view source on GitHub ↗
({
  className,
  variant = "default",
  ...props
}: React.ComponentProps<"div"> & {
  variant?: "default" | "bare";
})

Source from the content-addressed store, hash-verified

120}
121
122function SheetFooter({
123 className,
124 variant = "default",
125 ...props
126}: React.ComponentProps<"div"> & {
127 variant?: "default" | "bare";
128}) {
129 return (
130 <div
131 className={cn(
132 "flex flex-col-reverse gap-2 px-6 sm:flex-row sm:justify-end",
133 variant === "default" && "border-t bg-muted/50 py-4",
134 variant === "bare" &&
135 "in-[[data-slot=sheet-popup]:has([data-slot=sheet-panel])]:pt-3 pt-4 pb-6",
136 className,
137 )}
138 data-slot="sheet-footer"
139 {...props}
140 />
141 );
142}
143
144function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
145 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected