Card() — ui Function Reference
Architecture documentation for the Card() function in card.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8b65ab93_d0ab_1d80_b264_ca461dee3ae4["Card()"] e06397bb_9733_481e_35fa_79363348baa0["card.tsx"] 8b65ab93_d0ab_1d80_b264_ca461dee3ae4 -->|defined in| e06397bb_9733_481e_35fa_79363348baa0 style 8b65ab93_d0ab_1d80_b264_ca461dee3ae4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/card.tsx lines 4–20
function Card({
className,
size = "default",
...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
return (
<div
data-slot="card"
data-size={size}
className={cn(
"ring-foreground/10 bg-card text-card-foreground group/card flex flex-col gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Card() do?
Card() is a function in the ui codebase, defined in apps/v4/examples/base/ui/card.tsx.
Where is Card() defined?
Card() is defined in apps/v4/examples/base/ui/card.tsx at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free