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