Card() — ui Function Reference
Architecture documentation for the Card() function in card.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD eb1bf051_c28a_e711_a862_ec0c29057189["Card()"] 48c04f0c_21e5_49a8_8cd8_5ec4fdd0c8bd["card.tsx"] eb1bf051_c28a_e711_a862_ec0c29057189 -->|defined in| 48c04f0c_21e5_49a8_8cd8_5ec4fdd0c8bd style eb1bf051_c28a_e711_a862_ec0c29057189 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/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/radix/ui-rtl/card.tsx.
Where is Card() defined?
Card() is defined in apps/v4/examples/radix/ui-rtl/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