MCPcopy Create free account
hub / github.com/cosscom/coss / DialogHeader

Function DialogHeader

packages/ui/src/components/dialog.tsx:114–132  ·  view source on GitHub ↗
({
  className,
  render,
  ...props
}: useRender.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

112}
113
114export function DialogHeader({
115 className,
116 render,
117 ...props
118}: useRender.ComponentProps<"div">): React.ReactElement {
119 const defaultProps = {
120 className: cn(
121 "flex flex-col gap-2 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-panel])]:pb-3 max-sm:pb-4",
122 className,
123 ),
124 "data-slot": "dialog-header",
125 };
126
127 return useRender({
128 defaultTagName: "div",
129 props: mergeProps<"div">(defaultProps, props),
130 render,
131 });
132}
133
134export function DialogFooter({
135 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected