MCPcopy
hub / github.com/cursor/cookbook / CardHeader

Function CardHeader

sdk/app-builder/src/components/ui/card.tsx:23–34  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

21}
22
23function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
24 return (
25 <div
26 data-slot="card-header"
27 className={cn(
28 "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",
29 className
30 )}
31 {...props}
32 />
33 )
34}
35
36function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
37 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected