Installation
npx shadcn@latest add @iconiq/cardProps
Card
Compound card surface with slot-based sections, optional interactive lift, and layout-aware motion between content states.
childrenReactNodeRequired
interactivebooleanDefault false
classNamestringonHoverStart() => voidonHoverEnd() => voidThe root forwards standard div props, so you can attach ids, aria attributes, data attributes, and event handlers directly.
Cards with a direct leading image automatically remove top padding and inherit the root radius on the first and last image edges.
Footer-aware padding is handled by the card itself, so adding CardFooter trims the bottom padding without extra wrapper logic.
CardHeader
Top header grid for title, description, and an optional trailing CardAction.
childrenReactNodeRequired
classNamestringThe header uses a compact grid so status pills and actions align naturally without extra wrappers.
CardTitle
Primary heading slot with default title typography.
childrenReactNodeRequired
classNamestringCardDescription
Secondary supporting copy beneath the title.
childrenReactNodeRequired
classNamestringCardAction
Optional trailing action slot aligned to the top-right of CardHeader.
childrenReactNodeRequired
classNamestringCardContent
Flexible middle section for body copy, media, stats, and custom layouts.
childrenReactNodeRequired
classNamestringCardFooter
Bottom section for supporting actions, metadata, or contextual labels.
childrenReactNodeRequired
classNamestringAdding CardFooter trims the root card bottom padding automatically.
Motion and interaction model
Layout changes are animated through Motion so expanding or swapping card content feels fluid rather than abrupt.
When interactive is enabled, hover drives a spring-smoothed motion value so lift, scale, and shadow ease in and out as one fluid surface; compound slots only animate layout when content changes.
interactive only changes the visible surface response: border, shadow, and a very small hover lift. The component does not add button semantics on its own.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: motion.
This page lives in the Components section, but the install itself is the shared Iconiq card primitive rather than a Radix UI or Base UI wrapper.
The provider switch is shown for section consistency, but both Radix UI and Base UI options are disabled because Card does not ship primitive-specific variants here.
The generated registry file is /r/card.json.