Card

Displays a card with header, content, and footer.

Installation

$npx maddex add Card

Login Form

The default card composition mirrors the shadcn login example, using CardAction for a secondary path and CardFooter for stacked actions.

Preview

        
            
        
    

Size

Use size="sm" for a more compact layout while keeping the same CardHeader, CardContent, and CardFooter structure.

Preview

        
            
        
    

Image

Place media before CardHeader to build a featured card while keeping the same semantic slots for content and footer actions.

Preview