Overview
The Card component provides a flexible container with multiple subcomponents for building structured UI elements. It includes Card, CardHeader, CardTitle, CardDescription, CardContent, and CardFooter.Components
Card
The main container component with rounded borders and shadow.Additional CSS classes to apply to the card
Ref to the underlying div element
Content to render inside the card
CardHeader
Container for the card’s header section with vertical spacing.Additional CSS classes to apply to the header
Ref to the underlying div element
Content to render inside the header
CardTitle
Displays the main title of the card with large, semibold text.Additional CSS classes to apply to the title
Ref to the underlying div element
Title text or content
CardDescription
Displays descriptive text with muted styling.Additional CSS classes to apply to the description
Ref to the underlying div element
Description text or content
CardContent
Main content area of the card with padding.Additional CSS classes to apply to the content area
Ref to the underlying div element
Content to render in the main area
CardFooter
Footer section with flex layout for actions or additional information.Additional CSS classes to apply to the footer
Ref to the underlying div element
Content to render in the footer
Usage
Examples
Basic Card
Card with Header and Footer
Custom Styled Card
Implementation
Source:/home/daytona/workspace/source/packages/ui/src/cardpanel/card.tsx