import { ComponentExample } from "@/components/ComponentExample"; # Card A container component for grouping related content with consistent styling. ## Features - **Clickable**: Optional onClick handler for interactive cards - **Consistent styling**: Border, shadow, and padding - **Hover effects**: Visual feedback on clickable cards - **Flexible content**: Accepts any children ## Basic Usage ```tsx import { Card } from "@cv/ui"; function MyCard() { return (

Card Title

Card content goes here

); } ```

Card Title

Card content goes here

## Clickable Card ```tsx {}}>

Clickable Card

This card has a click handler

``` ## Custom Styling ```tsx

Custom styled card

``` ## Props | Prop | Type | Default | Description | | ----------- | ----------------- | ------------ | ---------------------- | | `children` | `React.ReactNode` | **required** | Card content | | `className` | `string` | `""` | Additional CSS classes | | `onClick` | `() => void` | `undefined` | Optional click handler | ## Styling Default styling: - Border: `ctp-surface1` - Background: `ctp-surface0` - Padding: `p-4` - Border radius: `rounded-lg` - Shadow: `shadow-sm` (increases to `shadow-md` on hover if clickable)