Installation
npx shadcn@latest add @iconiq/cardProps
Card
4 props
Compound card surface with slot-based sections, optional interactive lift, and layout-aware motion between content states.
children
ReactNodeRequired
Compose CardHeader, CardContent, CardFooter, media, or custom blocks inside the shared card shell.
interactive
booleanDefault
falseEnables the restrained hover lift and stronger surface response intended for clickable or focusable cards.
reducedMotion
booleanForces the calmer motion path immediately while still honoring a user's system-level reduced motion preference.
className
stringMerged onto the root card surface for local spacing, border, or layout adjustments without replacing the slot API.
Notes
The 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.
